Class: TripIt::TripCrsRemark

Inherits:
Base
  • Object
show all
Defined in:
lib/trip_it/classes/trip_crs_remark.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Raises:

  • (ArgumentError)


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

#notesObject (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_locatorObject (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