Class: UspsCounties::ZipCodeLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/usps_counties/zip_code_location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject (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_populationsObject (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_abbrvObject (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_nameObject (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