Class: Seatsio::Domain::Account
- Inherits:
-
Object
- Object
- Seatsio::Domain::Account
- Defined in:
- lib/seatsio/domain.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#designer_key ⇒ Object
readonly
Returns the value of attribute designer_key.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_subaccount ⇒ Object
readonly
Returns the value of attribute is_subaccount.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(data) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(data) ⇒ Account
Returns a new instance of Account.
137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/seatsio/domain.rb', line 137 def initialize(data) @id = data['id'] @secret_key = data['secretKey'] @designer_key = data['designerKey'] @public_key = data['publicKey'] @name = data['name'] @email = data['email'] @is_subaccount = data['isSubaccount'] @active = data['active'] @settings = AccountSettings.new(data['settings']) if data['settings'] != nil end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def active @active end |
#designer_key ⇒ Object (readonly)
Returns the value of attribute designer_key.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def designer_key @designer_key end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def id @id end |
#is_subaccount ⇒ Object (readonly)
Returns the value of attribute is_subaccount.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def is_subaccount @is_subaccount end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def name @name end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def public_key @public_key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def secret_key @secret_key end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
134 135 136 |
# File 'lib/seatsio/domain.rb', line 134 def settings @settings end |