Class: QuestionproRails::Account
- Inherits:
-
Object
- Object
- QuestionproRails::Account
- Defined in:
- lib/questionpro_rails/account.rb
Instance Attribute Summary collapse
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
-
#creation_date ⇒ Object
readonly
Returns the value of attribute creation_date.
-
#email_address ⇒ Object
readonly
Returns the value of attribute email_address.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_login ⇒ Object
readonly
Returns the value of attribute last_login.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Account
constructor
A new instance of Account.
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'] @last_login = attributes['lastLogin'] @email_address = attributes['emailAddress'] @phone = attributes['phone'] @account_type = attributes['accountType'] @creation_date = attributes['creationDate'] end |
Instance Attribute Details
#account_type ⇒ Object (readonly)
Returns the value of attribute account_type.
4 5 6 |
# File 'lib/questionpro_rails/account.rb', line 4 def account_type @account_type end |
#creation_date ⇒ Object (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_address ⇒ Object (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_name ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/account.rb', line 4 def id @id end |
#last_login ⇒ Object (readonly)
Returns the value of attribute last_login.
4 5 6 |
# File 'lib/questionpro_rails/account.rb', line 4 def last_login @last_login end |
#last_name ⇒ Object (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 |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
4 5 6 |
# File 'lib/questionpro_rails/account.rb', line 4 def phone @phone end |