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.



108
109
110
111
112
113
114
# File 'lib/seatsio/domain.rb', line 108

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.



106
107
108
# File 'lib/seatsio/domain.rb', line 106

def color
  @color
end

#indexObject (readonly)

Returns the value of attribute index.



106
107
108
# File 'lib/seatsio/domain.rb', line 106

def index
  @index
end

#keyObject (readonly)

Returns the value of attribute key.



106
107
108
# File 'lib/seatsio/domain.rb', line 106

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



106
107
108
# File 'lib/seatsio/domain.rb', line 106

def name
  @name
end

#objectsObject (readonly)

Returns the value of attribute objects.



106
107
108
# File 'lib/seatsio/domain.rb', line 106

def objects
  @objects
end

Instance Method Details

#==(other) ⇒ Object



116
117
118
119
120
121
122
# File 'lib/seatsio/domain.rb', line 116

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