Class: QuestionproRails::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/questionpro_rails/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Account

Returns a new instance of Account.



7
8
9
10
11
12
13
14
15
16
# File 'lib/questionpro_rails/account.rb', line 7

def initialize (attributes)
  @id            = attributes['userID']
  @first_name    = attributes['firstName']
  @last_name     = attributes['lastName']
      = attributes['lastLogin']
  @email_address = attributes['emailAddress']
  @phone         = attributes['phone']
  @account_type  = attributes['accountType']
  @creation_date = attributes['creationDate']        
end

Instance Attribute Details

#account_typeObject (readonly)

Returns the value of attribute account_type.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def 
  @account_type
end

#creation_dateObject (readonly)

Returns the value of attribute creation_date.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def creation_date
  @creation_date
end

#email_addressObject (readonly)

Returns the value of attribute email_address.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def email_address
  @email_address
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def id
  @id
end

#last_loginObject (readonly)

Returns the value of attribute last_login.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def 
  
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def last_name
  @last_name
end

#phoneObject (readonly)

Returns the value of attribute phone.



4
5
6
# File 'lib/questionpro_rails/account.rb', line 4

def phone
  @phone
end