Class: SmartyStreets::USReverseGeo::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Address

Returns a new instance of Address.



7
8
9
10
11
12
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb', line 7

def initialize(obj)
  @street = obj['street']
  @city = obj['city']
  @state_abbreviation = obj['state_abbreviation']
  @zipcode = obj['zipcode']
end

Instance Attribute Details

#cityObject (readonly)

Returns the value of attribute city.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb', line 5

def city
  @city
end

#state_abbreviationObject (readonly)

Returns the value of attribute state_abbreviation.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb', line 5

def state_abbreviation
  @state_abbreviation
end

#streetObject (readonly)

Returns the value of attribute street.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb', line 5

def street
  @street
end

#zipcodeObject (readonly)

Returns the value of attribute zipcode.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb', line 5

def zipcode
  @zipcode
end