Class: TripIt::ReservationObject
- Inherits:
-
BaseObject
- Object
- Base
- BaseObject
- TripIt::ReservationObject
- Defined in:
- lib/trip_it/classes/objects/reservation_object.rb
Direct Known Subclasses
ActivityObject, AirObject, CarObject, CruiseObject, LodgingObject, RailObject, RestaurantObject, TransportObject
Instance Attribute Summary
Attributes inherited from BaseObject
#id, #is_client_traveler, #relative_url
Instance Method Summary collapse
Methods inherited from BaseObject
Methods inherited from Base
#Boolean, #camelize, #chkAndPopulate, #chkObjAndPopulate, #convertDT, #to_hash, #to_json, #to_xml
Methods included from ParamUtil
#address_param, #airportcode_param, #array_param, #boolean_param, #boolean_read_param, #camelize, #date_param, #datetime_param, #exceptions, #float_param, #integer_param, #string_param, #time_param, #traveler_array_param, #traveler_param
Instance Method Details
#populate(info) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/trip_it/classes/objects/reservation_object.rb', line 13 def populate(info) super(info) @booking_rate = info["booking_rate"] @booking_site_conf_num = info["booking_site_conf_num"] @booking_site_name = info["booking_site_name"] @booking_site_phone = info["booking_site_phone"] @booking_site_url = info["booking_site_url"] @record_locator = info["record_locator"] @supplier_conf_num = info["supplier_conf_num"] @supplier_contact = info["supplier_contact"] @supplier_email_address = info["supplier_email_address"] @supplier_name = info["supplier_name"] @supplier_phone = info["supplier_phone"] @supplier_url = info["supplier_url"] @notes = info["notes"] @restrictions = info["restrictions"] @total_cost = info["total_cost"] @cancellation_date_time = convertDT(info["CancellationDateTime"]) @booking_date = info["booking_date"] @is_purchased = Boolean(info["is_purchased"]) end |
#sequence ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/trip_it/classes/objects/reservation_object.rb', line 35 def sequence arr = super arr + ["@cancellation_date_time", "@booking_date", "@booking_rate", "@booking_site_conf_num", "@booking_site_name", "@booking_site_phone", "@booking_site_url", "@record_locator", "@supplier_conf_num", "@supplier_contact", "@supplier_email_address", "@supplier_name", "@supplier_phone", "@supplier_url", "@is_purchased", "@notes", "@restrictions", "@total_cost" ] end |