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, name, color, index, objects) ⇒ Channel

Returns a new instance of Channel.



141
142
143
144
145
146
147
# File 'lib/seatsio/domain.rb', line 141

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

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



139
140
141
# File 'lib/seatsio/domain.rb', line 139

def color
  @color
end

#indexObject (readonly)

Returns the value of attribute index.



139
140
141
# File 'lib/seatsio/domain.rb', line 139

def index
  @index
end

#keyObject (readonly)

Returns the value of attribute key.



139
140
141
# File 'lib/seatsio/domain.rb', line 139

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



139
140
141
# File 'lib/seatsio/domain.rb', line 139

def name
  @name
end

#objectsObject (readonly)

Returns the value of attribute objects.



139
140
141
# File 'lib/seatsio/domain.rb', line 139

def objects
  @objects
end

Instance Method Details

#==(other) ⇒ Object



149
150
151
152
153
154
155
# File 'lib/seatsio/domain.rb', line 149

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