Class: Seatsio::Domain::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.



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

#idObject (readonly)

Returns the value of attribute id.



135
136
137
# File 'lib/seatsio/domain.rb', line 135

def id
  @id
end

#is_testObject (readonly)

Returns the value of attribute is_test.



135
136
137
# File 'lib/seatsio/domain.rb', line 135

def is_test
  @is_test
end

#keyObject (readonly)

Returns the value of attribute key.



135
136
137
# File 'lib/seatsio/domain.rb', line 135

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



135
136
137
# File 'lib/seatsio/domain.rb', line 135

def name
  @name
end

#secret_keyObject (readonly)

Returns the value of attribute secret_key.



135
136
137
# File 'lib/seatsio/domain.rb', line 135

def secret_key
  @secret_key
end