Class: Seatsio::Category
- Inherits:
-
Object
- Object
- Seatsio::Category
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#accessible ⇒ Object
readonly
Returns the value of attribute accessible.
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(key, label, color, accessible) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(key, label, color, accessible) ⇒ Category
Returns a new instance of Category.
77 78 79 80 81 82 |
# File 'lib/seatsio/domain.rb', line 77 def initialize(key, label, color, accessible) @key = key @label = label @color = color @accessible = accessible end |
Instance Attribute Details
#accessible ⇒ Object (readonly)
Returns the value of attribute accessible.
75 76 77 |
# File 'lib/seatsio/domain.rb', line 75 def accessible @accessible end |
#color ⇒ Object (readonly)
Returns the value of attribute color.
75 76 77 |
# File 'lib/seatsio/domain.rb', line 75 def color @color end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
75 76 77 |
# File 'lib/seatsio/domain.rb', line 75 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
75 76 77 |
# File 'lib/seatsio/domain.rb', line 75 def label @label end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
100 101 102 103 104 105 |
# File 'lib/seatsio/domain.rb', line 100 def == (other) key == other.key && label == other.label && color == other.color && accessible == other.accessible end |