Class: UspsCounties::ZipCodeLocation
- Inherits:
-
Object
- Object
- UspsCounties::ZipCodeLocation
- Defined in:
- lib/usps_counties/zip_code_location.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#counties_populations ⇒ Object
readonly
Returns the value of attribute counties_populations.
-
#state_abbrv ⇒ Object
readonly
Returns the value of attribute state_abbrv.
-
#state_name ⇒ Object
readonly
Returns the value of attribute state_name.
Instance Method Summary collapse
-
#initialize(city, state_abbrv, state_name, counties_populations) ⇒ ZipCodeLocation
constructor
A new instance of ZipCodeLocation.
Constructor Details
#initialize(city, state_abbrv, state_name, counties_populations) ⇒ ZipCodeLocation
Returns a new instance of ZipCodeLocation.
5 6 7 8 9 10 |
# File 'lib/usps_counties/zip_code_location.rb', line 5 def initialize(city, state_abbrv, state_name, counties_populations) @city = city @state_abbrv = state_abbrv @state_name = state_name @counties_populations = counties_populations end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/usps_counties/zip_code_location.rb', line 3 def city @city end |
#counties_populations ⇒ Object (readonly)
Returns the value of attribute counties_populations.
3 4 5 |
# File 'lib/usps_counties/zip_code_location.rb', line 3 def counties_populations @counties_populations end |
#state_abbrv ⇒ Object (readonly)
Returns the value of attribute state_abbrv.
3 4 5 |
# File 'lib/usps_counties/zip_code_location.rb', line 3 def state_abbrv @state_abbrv end |
#state_name ⇒ Object (readonly)
Returns the value of attribute state_name.
3 4 5 |
# File 'lib/usps_counties/zip_code_location.rb', line 3 def state_name @state_name end |