Class: SirvRestApi::AccountUser

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

Overview

Account user

Instance Attribute Summary collapse

Instance Method Summary collapse

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_createdObject

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

#emailObject

Returns the value of attribute email.



67
68
69
# File 'lib/sirv_rest_api/models.rb', line 67

def email
  @email
end

#first_nameObject

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_nameObject

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

#roleObject

Returns the value of attribute role.



67
68
69
# File 'lib/sirv_rest_api/models.rb', line 67

def role
  @role
end

#user_idObject

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