class PetStore::User
- PetStore::User
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
pet_store/models/user.crConstructors
- .new(pull : JSON::PullParser)
-
.new(*, id : Int64 | Nil = nil, username : String | Nil = nil, first_name : String | Nil = nil, last_name : String | Nil = nil, email : String | Nil = nil, password : String | Nil = nil, phone : String | Nil = nil, user_status : Int32 | Nil = nil, arbitrary_object : Hash(String, String) | Nil = nil, arbitrary_nullable_object : Hash(String, String) | Nil = nil, arbitrary_type_value : JSON::Any | Nil = nil, arbitrary_nullable_type_value : JSON::Any | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #arbitrary_nullable_object : Hash(String, String) | Nil
-
#arbitrary_nullable_object=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #arbitrary_nullable_object_present=(arbitrary_nullable_object_present : Bool)
- #arbitrary_nullable_object_present? : Bool
- #arbitrary_nullable_type_value : JSON::Any | Nil
-
#arbitrary_nullable_type_value=(new_value : JSON::Any | Nil)
Custom attribute writer method checking allowed values (enum).
- #arbitrary_nullable_type_value_present=(arbitrary_nullable_type_value_present : Bool)
- #arbitrary_nullable_type_value_present? : Bool
- #arbitrary_object : Hash(String, String) | Nil
-
#arbitrary_object=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #arbitrary_type_value : JSON::Any | Nil
-
#arbitrary_type_value=(new_value : JSON::Any | Nil)
Custom attribute writer method checking allowed values (enum).
- #arbitrary_type_value_present=(arbitrary_type_value_present : Bool)
- #arbitrary_type_value_present? : Bool
- #email : String | Nil
-
#email=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #first_name : String | Nil
-
#first_name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #id : Int64 | Nil
-
#id=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #last_name : String | Nil
-
#last_name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #password : String | Nil
-
#password=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #phone : String | Nil
-
#phone=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #user_status : Int32 | Nil
-
#user_status=(new_value : Int32 | Nil)
Custom attribute writer method checking allowed values (enum).
- #username : String | Nil
-
#username=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] arbitrary_nullable_object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] arbitrary_nullable_type_value Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] arbitrary_object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] arbitrary_type_value Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] email Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] first_name Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] last_name Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] password Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] phone Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] user_status Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] username Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid