Class: SirvRestApi::AccountUser
- Inherits:
-
Object
- Object
- SirvRestApi::AccountUser
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Account user
Instance Attribute Summary collapse
-
#date_created ⇒ Object
Returns the value of attribute date_created.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#role ⇒ Object
Returns the value of attribute role.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountUser
constructor
A new instance of AccountUser.
Constructor Details
#initialize(data = {}) ⇒ AccountUser
Returns a new instance of AccountUser.
69 70 71 72 73 74 75 76 |
# File 'lib/sirv_rest_api/models.rb', line 69 def initialize(data = {}) @user_id = data["userId"] @email = data["email"] @first_name = data["firstName"] @last_name = data["lastName"] @role = data["role"] @date_created = data["dateCreated"] end |
Instance Attribute Details
#date_created ⇒ Object
Returns the value of attribute date_created.
67 68 69 |
# File 'lib/sirv_rest_api/models.rb', line 67 def date_created @date_created end |
#email ⇒ Object
Returns the value of attribute email.
67 68 69 |
# File 'lib/sirv_rest_api/models.rb', line 67 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
67 68 69 |
# File 'lib/sirv_rest_api/models.rb', line 67 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
67 68 69 |
# File 'lib/sirv_rest_api/models.rb', line 67 def last_name @last_name end |
#role ⇒ Object
Returns the value of attribute role.
67 68 69 |
# File 'lib/sirv_rest_api/models.rb', line 67 def role @role end |
#user_id ⇒ Object
Returns the value of attribute user_id.
67 68 69 |
# File 'lib/sirv_rest_api/models.rb', line 67 def user_id @user_id end |