Class: Seatsio::Subaccount
- Inherits:
-
Object
- Object
- Seatsio::Subaccount
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#designer_key ⇒ Object
readonly
Returns the value of attribute designer_key.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#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.
Instance Method Summary collapse
-
#initialize(data) ⇒ Subaccount
constructor
A new instance of Subaccount.
Constructor Details
#initialize(data) ⇒ Subaccount
Returns a new instance of Subaccount.
180 181 182 183 184 185 186 187 |
# File 'lib/seatsio/domain.rb', line 180 def initialize(data) @id = data['id'] @public_key = data['publicKey'] @secret_key = data['secretKey'] @designer_key = data['designerKey'] @name = data['name'] @active = data['active'] end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
178 179 180 |
# File 'lib/seatsio/domain.rb', line 178 def active @active end |
#designer_key ⇒ Object (readonly)
Returns the value of attribute designer_key.
178 179 180 |
# File 'lib/seatsio/domain.rb', line 178 def designer_key @designer_key end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
178 179 180 |
# File 'lib/seatsio/domain.rb', line 178 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
178 179 180 |
# File 'lib/seatsio/domain.rb', line 178 def name @name end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
178 179 180 |
# File 'lib/seatsio/domain.rb', line 178 def public_key @public_key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
178 179 180 |
# File 'lib/seatsio/domain.rb', line 178 def secret_key @secret_key end |