Class: HotelBeds::HotelBasketAdd::Response
- Inherits:
-
Action::Response
- Object
- Action::Response
- HotelBeds::HotelBasketAdd::Response
- Defined in:
- lib/hotel_beds/hotel_basket_add/response.rb
Instance Attribute Summary
Attributes inherited from Action::Response
#body, #errors, #headers, #request
Instance Method Summary collapse
Methods inherited from Action::Response
#initialize, #inspect, #success?
Constructor Details
This class inherits a constructor from HotelBeds::Action::Response
Instance Method Details
#purchase ⇒ Object
11 12 13 |
# File 'lib/hotel_beds/hotel_basket_add/response.rb', line 11 def purchase HotelBeds::Parser::Purchase.new(body.at_css("Purchase")).to_model end |
#session_id ⇒ Object
7 8 9 |
# File 'lib/hotel_beds/hotel_basket_add/response.rb', line 7 def session_id request.session_id end |