Class: Seatsio::Workspace

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Workspace

Returns a new instance of Workspace.



193
194
195
196
197
198
199
200
201
# File 'lib/seatsio/domain.rb', line 193

def initialize(data)
  @id = data['id']
  @name = data['name']
  @key = data['key']
  @secret_key = data['secretKey']
  @is_test = data['isTest']
  @is_active = data['isActive']
  @is_default = data['isDefault']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def id
  @id
end

#is_activeObject (readonly)

Returns the value of attribute is_active.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def is_active
  @is_active
end

#is_defaultObject (readonly)

Returns the value of attribute is_default.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def is_default
  @is_default
end

#is_testObject (readonly)

Returns the value of attribute is_test.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def is_test
  @is_test
end

#keyObject (readonly)

Returns the value of attribute key.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def name
  @name
end

#secret_keyObject (readonly)

Returns the value of attribute secret_key.



191
192
193
# File 'lib/seatsio/domain.rb', line 191

def secret_key
  @secret_key
end