Class: Seatsio::ForSaleConfig
- Inherits:
-
Object
- Object
- Seatsio::ForSaleConfig
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#for_sale ⇒ Object
readonly
Returns the value of attribute for_sale.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
-
#initialize(data) ⇒ ForSaleConfig
constructor
A new instance of ForSaleConfig.
Constructor Details
#initialize(data) ⇒ ForSaleConfig
Returns a new instance of ForSaleConfig.
64 65 66 67 68 69 70 |
# File 'lib/seatsio/domain.rb', line 64 def initialize(data) if data @for_sale = data['forSale'] @objects = data['objects'] @categories = data['categories'] end end |
Instance Attribute Details
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
62 63 64 |
# File 'lib/seatsio/domain.rb', line 62 def categories @categories end |
#for_sale ⇒ Object (readonly)
Returns the value of attribute for_sale.
62 63 64 |
# File 'lib/seatsio/domain.rb', line 62 def for_sale @for_sale end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
62 63 64 |
# File 'lib/seatsio/domain.rb', line 62 def objects @objects end |