Class: Seatsio::Channel
- Inherits:
-
Object
- Object
- Seatsio::Channel
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(key, name, color, index, objects) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(key, name, color, index, objects) ⇒ Channel
Returns a new instance of Channel.
174 175 176 177 178 179 180 |
# File 'lib/seatsio/domain.rb', line 174 def initialize(key, name, color, index, objects) @key = key @name = name @color = color @index = index @objects = objects end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def color @color end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def index @index end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def name @name end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
172 173 174 |
# File 'lib/seatsio/domain.rb', line 172 def objects @objects end |
Instance Method Details
#==(other) ⇒ Object
182 183 184 185 186 187 188 |
# File 'lib/seatsio/domain.rb', line 182 def == (other) key == other.key && name == other.name && color == other.color && index == other.index && objects == other.objects end |