Class: TripIt::Address
Instance Attribute Summary collapse
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Address
constructor
A new instance of Address.
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 = {}) ⇒ Address
Returns a new instance of Address.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/trip_it/classes/address.rb', line 6 def initialize(params = {}) @address = params["address"] @addr1 = params["addr1"] @addr2 = params["addr2"] @city = params["city"] @state = params["state"] @zip = params["zip"] @country = params["country"] @latitude = params["latitude"] @longitude = params["longitude"] end |
Instance Attribute Details
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
4 5 6 |
# File 'lib/trip_it/classes/address.rb', line 4 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
4 5 6 |
# File 'lib/trip_it/classes/address.rb', line 4 def longitude @longitude end |