Class: Sorenson::Services::Subaccount
- Defined in:
- lib/sorenson/services/subaccount.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Attributes.
-
#accountId ⇒ Object
Attributes.
-
#dateRetrieved ⇒ Object
Attributes.
-
#email ⇒ Object
Attributes.
-
#id ⇒ Object
Attributes.
-
#status ⇒ Object
Attributes.
-
#username ⇒ Object
Attributes.
Instance Method Summary collapse
- #activate! ⇒ Object
- #deactivate! ⇒ Object
-
#initialize(account, data) ⇒ Subaccount
constructor
Instance Methods.
Methods inherited from Base
delete_from, get_from, host, login_no_resource, parse_response, post_to, put_to, verify_account_settings
Constructor Details
#initialize(account, data) ⇒ Subaccount
Instance Methods
12 13 14 15 16 17 18 19 20 |
# File 'lib/sorenson/services/subaccount.rb', line 12 def initialize(account, data) self.account = account self.username = data['username'] self.id = data['id'] self.status = data['status'] self.accountId = data['accountId'] self.email = data['email'] self.dateRetrieved = data['dateRetrieved'] end |
Instance Attribute Details
#account ⇒ Object
Attributes
6 7 8 |
# File 'lib/sorenson/services/subaccount.rb', line 6 def account @account end |
#accountId ⇒ Object
Attributes
6 7 8 |
# File 'lib/sorenson/services/subaccount.rb', line 6 def accountId @accountId end |
#dateRetrieved ⇒ Object
Attributes
6 7 8 |
# File 'lib/sorenson/services/subaccount.rb', line 6 def dateRetrieved @dateRetrieved end |
#email ⇒ Object
Attributes
6 7 8 |
# File 'lib/sorenson/services/subaccount.rb', line 6 def email @email end |
#status ⇒ Object
Attributes
6 7 8 |
# File 'lib/sorenson/services/subaccount.rb', line 6 def status @status end |
#username ⇒ Object
Attributes
6 7 8 |
# File 'lib/sorenson/services/subaccount.rb', line 6 def username @username end |