Class: TripIt::Traveler

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

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 = {}) ⇒ Traveler

Returns a new instance of Traveler.



5
6
7
8
9
10
11
12
13
14
# File 'lib/trip_it/classes/traveler.rb', line 5

def initialize(params = {})     
  @first_name                   = params["first_name"]
  @middle_name                  = params["middle_name"]
  @last_name                    = params["last_name"]
  @frequent_traveler_num        = params["frequent_traveler_num"]
  @frequent_traveler_supplier   = params["frequent_traveler_supplier"]
  @meal_preference              = params["meal_preference"]
  @seat_preference              = params["seat_preference"]
  @ticket_num                   = params["ticket_num"]
end