Class: SmartyStreets::USZipcode::AlternateCounty

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fipsObject (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_nameObject (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

#stateObject (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_abbreviationObject (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