Class: Gillbus::V2::Responses::TripSeats
- Defined in:
- lib/gillbus/v2/responses/trip_seats.rb
Instance Attribute Summary
Attributes inherited from Base
#http_body, #http_headers, #http_status
Instance Method Summary collapse
Methods inherited from Base
#error_code, #error_message, #initialize, #json_body, #success?
Constructor Details
This class inherits a constructor from Gillbus::V2::Responses::Base
Instance Method Details
#seat_maps ⇒ Object
4 5 6 7 8 9 |
# File 'lib/gillbus/v2/responses/trip_seats.rb', line 4 def seat_maps @seat_maps ||= (json_body["maps_seat"] || []).map do |item| Structs::SegmentSeatMap.from_raw_data(item) end end |