Class: Seatsio::Channel
- Inherits:
-
Object
- Object
- Seatsio::Channel
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#area_places ⇒ Object
readonly
Returns the value of attribute area_places.
-
#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 = [], area_places = {}) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(key, name, color, index, objects = [], area_places = {}) ⇒ Channel
Returns a new instance of Channel.
200 201 202 203 204 205 206 207 |
# File 'lib/seatsio/domain.rb', line 200 def initialize(key, name, color, index, objects = [], area_places = {}) @key = key @name = name @color = color @index = index @objects = objects @area_places = area_places end |
Instance Attribute Details
#area_places ⇒ Object (readonly)
Returns the value of attribute area_places.
198 199 200 |
# File 'lib/seatsio/domain.rb', line 198 def area_places @area_places end |
#color ⇒ Object (readonly)
Returns the value of attribute color.
198 199 200 |
# File 'lib/seatsio/domain.rb', line 198 def color @color end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
198 199 200 |
# File 'lib/seatsio/domain.rb', line 198 def index @index end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
198 199 200 |
# File 'lib/seatsio/domain.rb', line 198 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
198 199 200 |
# File 'lib/seatsio/domain.rb', line 198 def name @name end |
#objects ⇒ Object (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
209 210 211 212 213 214 215 216 |
# File 'lib/seatsio/domain.rb', line 209 def == (other) key == other.key && name == other.name && color == other.color && index == other.index && objects == other.objects && area_places == other.area_places end |