Class: SirvRestApi::UserInfo
- Inherits:
-
Object
- Object
- SirvRestApi::UserInfo
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
User information
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.
-
#s3_key ⇒ Object
Returns the value of attribute s3_key.
-
#s3_secret ⇒ Object
Returns the value of attribute s3_secret.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ UserInfo
constructor
A new instance of UserInfo.
Constructor Details
#initialize(data = {}) ⇒ UserInfo
Returns a new instance of UserInfo.
126 127 128 129 130 131 132 133 134 |
# File 'lib/sirv_rest_api/models.rb', line 126 def initialize(data = {}) @user_id = data["userId"] @email = data["email"] @first_name = data["firstName"] @last_name = data["lastName"] @date_created = data["dateCreated"] @s3_key = data["s3Key"] @s3_secret = data["s3Secret"] end |
Instance Attribute Details
#date_created ⇒ Object
Returns the value of attribute date_created.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def date_created @date_created end |
#email ⇒ Object
Returns the value of attribute email.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def last_name @last_name end |
#s3_key ⇒ Object
Returns the value of attribute s3_key.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def s3_key @s3_key end |
#s3_secret ⇒ Object
Returns the value of attribute s3_secret.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def s3_secret @s3_secret end |
#user_id ⇒ Object
Returns the value of attribute user_id.
124 125 126 |
# File 'lib/sirv_rest_api/models.rb', line 124 def user_id @user_id end |