Class: Seatsio::Domain::Workspace
- Inherits:
-
Object
- Object
- Seatsio::Domain::Workspace
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_test ⇒ Object
readonly
Returns the value of attribute is_test.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ Workspace
constructor
A new instance of Workspace.
Constructor Details
#initialize(data) ⇒ Workspace
Returns a new instance of Workspace.
137 138 139 140 141 142 143 |
# File 'lib/seatsio/domain.rb', line 137 def initialize(data) @id = data['id'] @name = data['name'] @key = data['key'] @secret_key = data['secretKey'] @is_test = data['isTest'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
135 136 137 |
# File 'lib/seatsio/domain.rb', line 135 def id @id end |
#is_test ⇒ Object (readonly)
Returns the value of attribute is_test.
135 136 137 |
# File 'lib/seatsio/domain.rb', line 135 def is_test @is_test end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
135 136 137 |
# File 'lib/seatsio/domain.rb', line 135 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
135 136 137 |
# File 'lib/seatsio/domain.rb', line 135 def name @name end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
135 136 137 |
# File 'lib/seatsio/domain.rb', line 135 def secret_key @secret_key end |