Class: SmartyStreets::USReverseGeo::Address
- Inherits:
-
Object
- Object
- SmartyStreets::USReverseGeo::Address
- Defined in:
- lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb
Overview
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#state_abbreviation ⇒ Object
readonly
Returns the value of attribute state_abbreviation.
-
#street ⇒ Object
readonly
Returns the value of attribute street.
-
#zipcode ⇒ Object
readonly
Returns the value of attribute zipcode.
Instance Method Summary collapse
-
#initialize(obj) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(obj) ⇒ Address
Returns a new instance of Address.
7 8 9 10 11 12 13 |
# 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'] @source = obj['source'] end |
Instance Attribute Details
#city ⇒ Object (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 |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/address.rb', line 5 def source @source end |
#state_abbreviation ⇒ Object (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 |
#street ⇒ Object (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 |
#zipcode ⇒ Object (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 |