Class: SpreeCmCommissioner::TripSeatLayoutResult

Inherits:
Object
  • Object
show all
Defined in:
lib/spree_cm_commissioner/trip_seat_layout_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  options.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#allow_seat_selectionObject

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

#layoutObject

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_seatsObject

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_seatsObject

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_soldObject

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_idObject

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