Class: SirvRestApi::UserInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/sirv_rest_api/models.rb

Overview

User information

Instance Attribute Summary collapse

Instance Method Summary collapse

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_createdObject

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

#emailObject

Returns the value of attribute email.



124
125
126
# File 'lib/sirv_rest_api/models.rb', line 124

def email
  @email
end

#first_nameObject

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_nameObject

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_keyObject

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_secretObject

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_idObject

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