Class: TripIt::Address

Inherits:
Base
  • Object
show all
Defined in:
lib/trip_it/classes/address.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 = {}) ⇒ 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

#latitudeObject (readonly)

Returns the value of attribute latitude.



4
5
6
# File 'lib/trip_it/classes/address.rb', line 4

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



4
5
6
# File 'lib/trip_it/classes/address.rb', line 4

def longitude
  @longitude
end