Class: Seatsio::Channel

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, id, name, color, index, objects, area_places) ⇒ Channel

Returns a new instance of Channel.



200
201
202
203
204
205
206
207
208
# File 'lib/seatsio/domain.rb', line 200

def initialize(key, id, name, color, index, objects, area_places)
  @id = id
  @key = key
  @name = name
  @color = color
  @index = index
  @objects = objects
  @area_places = area_places
end

Instance Attribute Details

#area_placesObject (readonly)

Returns the value of attribute area_places.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def area_places
  @area_places
end

#colorObject (readonly)

Returns the value of attribute color.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def color
  @color
end

#idObject (readonly)

Returns the value of attribute id.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def id
  @id
end

#indexObject (readonly)

Returns the value of attribute index.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def index
  @index
end

#keyObject (readonly)

Returns the value of attribute key.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def name
  @name
end

#objectsObject (readonly)

Returns the value of attribute objects.



198
199
200
# File 'lib/seatsio/domain.rb', line 198

def objects
  @objects
end

Instance Method Details

#==(other) ⇒ Object



214
215
216
217
218
219
220
221
222
# File 'lib/seatsio/domain.rb', line 214

def == (other)
  id == other.id &&
  key == other.key &&
  name == other.name &&
  color == other.color &&
  index == other.index &&
  objects == other.objects &&
  area_places == other.area_places
end

#area_partition_label(area_label) ⇒ Object



210
211
212
# File 'lib/seatsio/domain.rb', line 210

def area_partition_label(area_label)
  "#{area_label}###{@id}"
end