Class: TripIt::TripCrsRemark
- Defined in:
- lib/trip_it/classes/trip_crs_remark.rb
Instance Attribute Summary collapse
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#record_locator ⇒ Object
readonly
Returns the value of attribute record_locator.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ TripCrsRemark
constructor
A new instance of TripCrsRemark.
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
Constructor Details
#initialize(params = {}) ⇒ TripCrsRemark
Returns a new instance of TripCrsRemark.
5 6 7 8 9 10 |
# File 'lib/trip_it/classes/trip_crs_remark.rb', line 5 def initialize(params = {}) raise ArgumentError, "TripCrsRemark created with empty parameters" if params.empty? @record_locator = params["record_locator"] @notes = params["notes"] end |
Instance Attribute Details
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
3 4 5 |
# File 'lib/trip_it/classes/trip_crs_remark.rb', line 3 def notes @notes end |
#record_locator ⇒ Object (readonly)
Returns the value of attribute record_locator.
3 4 5 |
# File 'lib/trip_it/classes/trip_crs_remark.rb', line 3 def record_locator @record_locator end |