Class: IllyanClient::Person
- Inherits:
-
Object
- Object
- IllyanClient::Person
- Includes:
- ActiveModel::Model, ActiveModel::Serializers::JSON
- Defined in:
- lib/illyan_client/person.rb
Instance Attribute Summary collapse
-
#admin ⇒ Object
Returns the value of attribute admin.
-
#birthdate ⇒ Object
Returns the value of attribute birthdate.
-
#email ⇒ Object
Returns the value of attribute email.
-
#firstname ⇒ Object
Returns the value of attribute firstname.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lastname ⇒ Object
Returns the value of attribute lastname.
Instance Method Summary collapse
Instance Attribute Details
#admin ⇒ Object
Returns the value of attribute admin.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def admin @admin end |
#birthdate ⇒ Object
Returns the value of attribute birthdate.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def birthdate @birthdate end |
#email ⇒ Object
Returns the value of attribute email.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def email @email end |
#firstname ⇒ Object
Returns the value of attribute firstname.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def firstname @firstname end |
#gender ⇒ Object
Returns the value of attribute gender.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def gender @gender end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def id @id end |
#lastname ⇒ Object
Returns the value of attribute lastname.
8 9 10 |
# File 'lib/illyan_client/person.rb', line 8 def lastname @lastname end |
Instance Method Details
#attributes ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/illyan_client/person.rb', line 14 def attributes { id: id, firstname: firstname, lastname: lastname, gender: gender, birthdate: birthdate, email: email, admin: admin } end |
#persisted? ⇒ Boolean
10 11 12 |
# File 'lib/illyan_client/person.rb', line 10 def persisted? id end |