Class: SpreeCmCommissioner::Integrations::BookMeBusV1::Resources::ReservationCart::Reservation
- Inherits:
-
Base
- Object
- Base
- SpreeCmCommissioner::Integrations::BookMeBusV1::Resources::ReservationCart::Reservation
- Defined in:
- app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#contact_email ⇒ Object
Returns the value of attribute contact_email.
-
#contact_name ⇒ Object
Returns the value of attribute contact_name.
-
#contact_phone ⇒ Object
Returns the value of attribute contact_phone.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#departure_date ⇒ Object
Returns the value of attribute departure_date.
-
#departure_time ⇒ Object
Returns the value of attribute departure_time.
-
#fare ⇒ Object
Returns the value of attribute fare.
-
#from_location ⇒ Object
Returns the value of attribute from_location.
-
#id ⇒ Object
Returns the value of attribute id.
-
#number_of_seats ⇒ Object
Returns the value of attribute number_of_seats.
-
#reservation_number ⇒ Object
Returns the value of attribute reservation_number.
-
#reservation_qr_code_url ⇒ Object
Returns the value of attribute reservation_qr_code_url.
-
#reserved_seats ⇒ Object
Returns the value of attribute reserved_seats.
-
#route_type ⇒ Object
Returns the value of attribute route_type.
-
#status ⇒ Object
Returns the value of attribute status.
-
#to_location ⇒ Object
Returns the value of attribute to_location.
-
#trip_fare_type ⇒ Object
Returns the value of attribute trip_fare_type.
Instance Method Summary collapse
Methods inherited from Base
from_json_api, from_json_api_item, from_json_api_single, #initialize
Constructor Details
This class inherits a constructor from SpreeCmCommissioner::Integrations::BookMeBusV1::Resources::Base
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def amount @amount end |
#contact_email ⇒ Object
Returns the value of attribute contact_email.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def contact_email @contact_email end |
#contact_name ⇒ Object
Returns the value of attribute contact_name.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def contact_name @contact_name end |
#contact_phone ⇒ Object
Returns the value of attribute contact_phone.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def contact_phone @contact_phone end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def currency_code @currency_code end |
#departure_date ⇒ Object
Returns the value of attribute departure_date.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def departure_date @departure_date end |
#departure_time ⇒ Object
Returns the value of attribute departure_time.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def departure_time @departure_time end |
#fare ⇒ Object
Returns the value of attribute fare.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def fare @fare end |
#from_location ⇒ Object
Returns the value of attribute from_location.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def from_location @from_location end |
#id ⇒ Object
Returns the value of attribute id.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def id @id end |
#number_of_seats ⇒ Object
Returns the value of attribute number_of_seats.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def number_of_seats @number_of_seats end |
#reservation_number ⇒ Object
Returns the value of attribute reservation_number.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def reservation_number @reservation_number end |
#reservation_qr_code_url ⇒ Object
Returns the value of attribute reservation_qr_code_url.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def reservation_qr_code_url @reservation_qr_code_url end |
#reserved_seats ⇒ Object
Returns the value of attribute reserved_seats.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def reserved_seats @reserved_seats end |
#route_type ⇒ Object
Returns the value of attribute route_type.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def route_type @route_type end |
#status ⇒ Object
Returns the value of attribute status.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def status @status end |
#to_location ⇒ Object
Returns the value of attribute to_location.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def to_location @to_location end |
#trip_fare_type ⇒ Object
Returns the value of attribute trip_fare_type.
46 47 48 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 46 def trip_fare_type @trip_fare_type end |
Instance Method Details
#to_h ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/resources/reservation_cart.rb', line 65 def to_h { 'id' => id, 'status' => status, 'reservation_number' => reservation_number, 'fare' => fare, 'amount' => amount, 'currency_code' => currency_code, 'number_of_seats' => number_of_seats, 'departure_date' => departure_date, 'contact_name' => contact_name, 'contact_phone' => contact_phone, 'contact_email' => contact_email, 'reserved_seats' => reserved_seats, 'reservation_qr_code_url' => reservation_qr_code_url, 'departure_time' => departure_time }.compact end |