Class: SpreeCmCommissioner::TripSeatLayoutResult
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::TripSeatLayoutResult
- Defined in:
- lib/spree_cm_commissioner/trip_seat_layout_result.rb
Instance Attribute Summary collapse
-
#allow_seat_selection ⇒ Object
Returns the value of attribute allow_seat_selection.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#remaining_seats ⇒ Object
Returns the value of attribute remaining_seats.
-
#total_seats ⇒ Object
Returns the value of attribute total_seats.
-
#total_sold ⇒ Object
Returns the value of attribute total_sold.
-
#trip_id ⇒ Object
Returns the value of attribute trip_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TripSeatLayoutResult
constructor
A new instance of TripSeatLayoutResult.
Constructor Details
#initialize(options = {}) ⇒ TripSeatLayoutResult
Returns a new instance of TripSeatLayoutResult.
5 6 7 8 9 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 5 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#allow_seat_selection ⇒ Object
Returns the value of attribute allow_seat_selection.
3 4 5 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 3 def allow_seat_selection @allow_seat_selection end |
#layout ⇒ Object
Returns the value of attribute layout.
3 4 5 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 3 def layout @layout end |
#remaining_seats ⇒ Object
Returns the value of attribute remaining_seats.
3 4 5 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 3 def remaining_seats @remaining_seats end |
#total_seats ⇒ Object
Returns the value of attribute total_seats.
3 4 5 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 3 def total_seats @total_seats end |
#total_sold ⇒ Object
Returns the value of attribute total_sold.
3 4 5 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 3 def total_sold @total_sold end |
#trip_id ⇒ Object
Returns the value of attribute trip_id.
3 4 5 |
# File 'lib/spree_cm_commissioner/trip_seat_layout_result.rb', line 3 def trip_id @trip_id end |