Class: SmartyStreets::USZipcode::AlternateCounty
- Inherits:
-
Object
- Object
- SmartyStreets::USZipcode::AlternateCounty
- Defined in:
- lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
Overview
Instance Attribute Summary collapse
-
#county_fips ⇒ Object
readonly
Returns the value of attribute county_fips.
-
#county_name ⇒ Object
readonly
Returns the value of attribute county_name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#state_abbreviation ⇒ Object
readonly
Returns the value of attribute state_abbreviation.
Instance Method Summary collapse
-
#initialize(obj) ⇒ AlternateCounty
constructor
A new instance of AlternateCounty.
Constructor Details
#initialize(obj) ⇒ AlternateCounty
Returns a new instance of AlternateCounty.
7 8 9 10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb', line 7 def initialize(obj) @county_fips = obj.fetch('county_fips', nil) @county_name = obj.fetch('county_name', nil) @state_abbreviation = obj.fetch('state_abbreviation', nil) @state = obj.fetch('state', nil) end |
Instance Attribute Details
#county_fips ⇒ Object (readonly)
Returns the value of attribute county_fips.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb', line 5 def county_fips @county_fips end |
#county_name ⇒ Object (readonly)
Returns the value of attribute county_name.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb', line 5 def county_name @county_name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb', line 5 def state @state end |
#state_abbreviation ⇒ Object (readonly)
Returns the value of attribute state_abbreviation.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb', line 5 def state_abbreviation @state_abbreviation end |