Module: SBA::Client::Data
Instance Method Summary collapse
-
#data_city(state, options = {}) ⇒ Array
Returns Data for all Cities in a State.
-
#data_city_county(state, options = {}) ⇒ Array
Returns Data for all Cities and Counties in a State.
-
#data_county(state, options = {}) ⇒ Array
Returns Data for all Counties in a State.
-
#data_specific_city(city, state, options = {}) ⇒ Array
Returns Data for a specific City.
-
#data_specific_county(county, state, options = {}) ⇒ Array
Returns Data for a specific County.
Instance Method Details
#data_city(state, options = {}) ⇒ Array
Returns Data for all Cities in a State
29 30 31 |
# File 'lib/sba/client/data.rb', line 29 def data_city(state, ={}) response = get("geodata/city_data_for_state_of/#{state}.json", ) end |
#data_city_county(state, options = {}) ⇒ Array
Returns Data for all Cities and Counties in a State
17 18 19 |
# File 'lib/sba/client/data.rb', line 17 def data_city_county(state,={}) response = get("geodata/city_county_data_for_state_of/#{state}.json", ) end |
#data_county(state, options = {}) ⇒ Array
Returns Data for all Counties in a State
41 42 43 |
# File 'lib/sba/client/data.rb', line 41 def data_county(state, ={}) response = get("geodata/county_data_for_state_of/#{state}.json", ) end |
#data_specific_city(city, state, options = {}) ⇒ Array
Returns Data for a specific City
54 55 56 |
# File 'lib/sba/client/data.rb', line 54 def data_specific_city(city, state, ={}) response = get("geodata/all_data_for_city_of/#{city}/#{state}.json", ) end |
#data_specific_county(county, state, options = {}) ⇒ Array
Returns Data for a specific County
67 68 69 |
# File 'lib/sba/client/data.rb', line 67 def data_specific_county(county, state, ={}) response = get("geodata/all_data_for_county_of/#{county}/#{state}.json", ) end |