Class: TripIt::Image
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Image
constructor
A new instance of Image.
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 = {}) ⇒ Image
Returns a new instance of Image.
5 6 7 8 |
# File 'lib/trip_it/classes/image.rb', line 5 def initialize(params = {}) @caption = params["caption"] @url = params["url"] end |