Class: TripIt::Invitee
Instance Attribute Summary collapse
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
Instance Method Summary collapse
-
#initialize(params, profile) ⇒ Invitee
constructor
A new instance of Invitee.
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, profile) ⇒ Invitee
Returns a new instance of Invitee.
6 7 8 9 10 11 12 |
# File 'lib/trip_it/classes/invitee.rb', line 6 def initialize(params, profile) raise ArgumentError, "Invitee created with empty parameters" if params.empty? @is_read_only = Boolean(params['is_read_only']) @is_traveler = Boolean(params['is_traveler']) @profile = profile end |
Instance Attribute Details
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
3 4 5 |
# File 'lib/trip_it/classes/invitee.rb', line 3 def profile @profile end |