sba 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/.gitignore +41 -0
  2. data/.rspec +3 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.md +10 -0
  5. data/LICENSE.mkd +20 -0
  6. data/README.mkd +72 -0
  7. data/Rakefile +16 -0
  8. data/autotest/discover.rb +1 -0
  9. data/lib/faraday/multipart.rb +29 -0
  10. data/lib/faraday/raise_error.rb +31 -0
  11. data/lib/faraday/response/raise_error.rb +32 -0
  12. data/lib/sba.rb +51 -0
  13. data/lib/sba/client.rb +44 -0
  14. data/lib/sba/client/connection.rb +37 -0
  15. data/lib/sba/client/data.rb +73 -0
  16. data/lib/sba/client/licenses.rb +111 -0
  17. data/lib/sba/client/loans.rb +125 -0
  18. data/lib/sba/client/request.rb +37 -0
  19. data/lib/sba/client/sites.rb +71 -0
  20. data/lib/sba/client/urls.rb +134 -0
  21. data/lib/sba/configuration.rb +44 -0
  22. data/lib/sba/version.rb +3 -0
  23. data/sba.gemspec +37 -0
  24. data/spec/data_spec.rb +103 -0
  25. data/spec/fixtures/all_sites_keywords.json +1393 -0
  26. data/spec/fixtures/business_type_state.json +81 -0
  27. data/spec/fixtures/business_type_state_city.json +131 -0
  28. data/spec/fixtures/business_type_state_county.json +101 -0
  29. data/spec/fixtures/business_type_zip.json +111 -0
  30. data/spec/fixtures/by_business_type.json +601 -0
  31. data/spec/fixtures/by_state.json +71 -0
  32. data/spec/fixtures/city_links_for_state.json +30 -0
  33. data/spec/fixtures/data_city.json +87543 -0
  34. data/spec/fixtures/data_city_county.json +88355 -0
  35. data/spec/fixtures/data_county.json +813 -0
  36. data/spec/fixtures/data_specific_city.json +15 -0
  37. data/spec/fixtures/data_specific_county.json +2493 -0
  38. data/spec/fixtures/doing_business_as.json +591 -0
  39. data/spec/fixtures/employer_requirements.json +2211 -0
  40. data/spec/fixtures/entity_filing.json +551 -0
  41. data/spec/fixtures/federal_and_state_financing_for.json +973 -0
  42. data/spec/fixtures/loan_grants.json +901 -0
  43. data/spec/fixtures/loan_grants_by_industry_specialty.json +533 -0
  44. data/spec/fixtures/loan_grants_by_specialty.json +210 -0
  45. data/spec/fixtures/loan_grants_industry.json +324 -0
  46. data/spec/fixtures/loan_grants_state_ind_spec.json +381 -0
  47. data/spec/fixtures/loan_grants_state_industry.json +381 -0
  48. data/spec/fixtures/loan_grants_state_specialty.json +362 -0
  49. data/spec/fixtures/primary_url_for_athens.json +15 -0
  50. data/spec/fixtures/primary_url_for_clarke_county.json +29 -0
  51. data/spec/fixtures/rec_sites_categories.json +249 -0
  52. data/spec/fixtures/rec_sites_categories.xml +1 -0
  53. data/spec/fixtures/rec_sites_domain.json +9 -0
  54. data/spec/fixtures/rec_sites_domain.xml +1 -0
  55. data/spec/fixtures/rec_sites_keyword.json +17 -0
  56. data/spec/fixtures/rec_sites_keywords.xml +1 -0
  57. data/spec/fixtures/rec_sites_master_term.json +9 -0
  58. data/spec/fixtures/rec_sites_master_term.xml +1 -0
  59. data/spec/fixtures/state_financing_for.json +73 -0
  60. data/spec/fixtures/state_licenses.json +11191 -0
  61. data/spec/fixtures/tax_registration.json +1101 -0
  62. data/spec/fixtures/url_city.json +6063 -0
  63. data/spec/fixtures/url_city_county.json +6875 -0
  64. data/spec/fixtures/url_county.json +813 -0
  65. data/spec/fixtures/url_specific_city.json +141 -0
  66. data/spec/fixtures/url_specific_county.json +477 -0
  67. data/spec/helper.rb +27 -0
  68. data/spec/licenses_spec.rb +148 -0
  69. data/spec/loans_spec.rb +193 -0
  70. data/spec/sba_ruby/client_spec.rb +8 -0
  71. data/spec/sba_spec.rb +9 -0
  72. data/spec/sites_spec.rb +101 -0
  73. data/spec/urls_spec.rb +188 -0
  74. metadata +345 -0
@@ -0,0 +1,111 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'json'
3
+
4
+ module SBA
5
+ class Client
6
+ module Licenses
7
+
8
+ include SBA::Client::Connection
9
+
10
+ # Returns results for a matching license or permit category for each 54 states and territories.
11
+ #
12
+ # @param category [String] One of the following categories: doing business as, entity filing, employer requirements, states licenses, tax registration
13
+ # @param options [Hash] A customizable set of options.
14
+ # @return {Hash}
15
+ # @see http://www.sba.gov/content/business-licenses-permits-api-category-method
16
+ # @example
17
+ # SBA.by_category("doing business as")
18
+ def by_category(category, options={})
19
+ options.merge!({:format=> "json"})
20
+ response = get("/license_permit/by_category/#{category}.json")
21
+ simplify_response(response)
22
+ end
23
+
24
+ # Returns all business licenses for all business types required to operate in an specific state or territory.
25
+ #
26
+ # @param state [String] input the two letter postal code for the state abbreviation.
27
+ # @param options [Hash] A customizable set of options.
28
+ # @return {Hash}
29
+ # @see http://www.sba.gov/content/business-licenses-permits-api-state-method
30
+ # @example
31
+ # SBA.by_state("ca")
32
+ def by_state(state, options={})
33
+ options.merge!({:format=> "json"})
34
+ response = get("/license_permit/all_by_state/#{state}.json", options)
35
+ simplify_response(response)
36
+ end
37
+
38
+ # Returns business licenses and permits required for a specific type of business for all 54 states and territories
39
+ #
40
+ # @param business [String] The business parameter includes standard values that allow you to return license and permit information for a specific type of business or for specific employer requirements
41
+ # @param options [Hash] A customizable set of options.
42
+ # @return {Hash}
43
+ # @see http://www.sba.gov/content/business-licenses-permits-api-business-type-method
44
+ # @example
45
+ # SBA.by_business_type("child care services")
46
+ def by_business_type(business, options={})
47
+ response = get("license_permit/by_business_type/#{business}.json", options)
48
+ simplify_response(response)
49
+ end
50
+
51
+ # Returns business licenses and permits required for a specific type of business in a specific state.
52
+ #
53
+ # @param business [String] The business parameter includes standard values that allow you to return license and permit information for a specific type of business or for specific employer requirements
54
+ # @param state [String] Input the two letter postal code for the state abbreviation.
55
+ # @param options [Hash] A customizable set of options.
56
+ # @return {Hash}
57
+ # @see http://www.sba.gov/content/business-licenses-permits-api-business-type-and-state-method
58
+ # @example
59
+ # SBA.business_type_state("child care services", "ca")
60
+ def business_type_state(business, state, options={})
61
+ response = get("license_permit/state_only/#{business}/#{state}.json", options)
62
+ simplify_response(response)
63
+ end
64
+
65
+ # Returns business licenses and permits required for a specific type of business in a specific state and county.
66
+ #
67
+ # @param business [String] The business parameter includes standard values that allow you to return license and permit information for a specific type of business or for specific employer requirements
68
+ # @param state [String] Input the two letter postal code for the state abbreviation.
69
+ # @param county [String] Input the name of the county (or its equivalent). County (or equivalent) name should including the word "county" (or "parish" etc.) For example, input Orange County, not Orange.
70
+ # @param options [Hash] A customizable set of options.
71
+ # @return {Hash}
72
+ # @see http://www.sba.gov/content/business-licenses-permits-api-business-type-state-and-county-method
73
+ # @example
74
+ # SBA.business_type_state_county("child care services", "ca", "los angeles county")
75
+ def business_type_state_county(business, state, county, options={})
76
+ response = get("license_permit/state_and_county/#{business}/#{state}/#{county}.json")
77
+ simplify_response(response)
78
+ end
79
+
80
+ # Returns business licenses and permits required for a specific type of business in a specific state and city
81
+ #
82
+ # @param business [String] The business parameter includes standard values that allow you to return license and permit information for a specific type of business or for specific employer requirements
83
+ # @param state [String] Input the two letter postal code for the state abbreviation.
84
+ # @param city [String] Input the name of the City.
85
+ # @param options [Hash] A customizable set of options.
86
+ # @return {Hash}
87
+ # @see http://www.sba.gov/content/business-licenses-permits-api-business-type-state-and-city-method
88
+ # @example
89
+ # SBA.business_type_state_city("restaurant", "ny", "albany")
90
+ def business_type_state_city(business, state, city, options={})
91
+ response = get("license_permit/state_and_city/#{business}/#{state}/#{city}.json")
92
+ simplify_response(response)
93
+ end
94
+
95
+ # Returns business licenses and permits required for a specific type of business in a specific zip code
96
+ #
97
+ # @param business [String] The business parameter includes standard values that allow you to return license and permit information for a specific type of business or for specific employer requirements
98
+ # @param zip [String] Input a valid five digit zip code.
99
+ # @param options [Hash] A customizable set of options.
100
+ # @return {Hash}
101
+ # @see http://www.sba.gov/content/business-licenses-permits-api-business-type-state-and-city-method
102
+ # @example
103
+ # SBA.business_type_zip("restaurant","94105")
104
+ def business_type_zip(business, zip, options={})
105
+ response = get("license_permit/by_zip/#{business}/#{zip}.json")
106
+ simplify_response(response)
107
+ end
108
+
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,125 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'json'
3
+
4
+ module SBA
5
+ class Client
6
+ module Loans
7
+ include SBA::Client::Connection
8
+
9
+ # Returns financing programs available from Federal government agencies and select non-profit organizations nationwide.
10
+ #
11
+ # @param options [Hash] A customizable set of options.
12
+ # @return {Hash}
13
+ # @see http://www.sba.gov/content/loans-grants-search-api-federal-program-method
14
+ # @example
15
+ # SBA.loan_grants_by_federal
16
+ def loan_grants_by_federal(options={})
17
+ response = get("loans_grants/federal.json", options)
18
+ end
19
+
20
+ # Returns all small business financing programs sponsored by state government agencies and select non-profit and commercial organizations.
21
+ #
22
+ # @param state [String] input the two leter postal code for the state abbreviation
23
+ # @param options [Hash] A customizable set of options.
24
+ # @return {Hash}
25
+ # @see http://www.sba.gov/content/loans-grants-search-api-programs-specific-state-method
26
+ # @example
27
+ # SBA.loan_grants_by_state("ca")
28
+ def loan_grants_by_state(state, options={})
29
+ response = get("loans_grants/state_financing_for/#{state}.json", options)
30
+ end
31
+
32
+ # Returns all small business financing programs sponsored by federal and state government agencies and selected non-profit and commercial organizations.
33
+ #
34
+ # @param state [String] input the two leter postal code for the state abbreviation
35
+ # @param options [Hash] A customizable set of options.
36
+ # @return {Hash}
37
+ # @see http://www.sba.gov/content/loans-grants-search-api-federal-and-state-specific-method
38
+ # @example
39
+ # SBA.loan_grants_by_federal_state("ca")
40
+ def loan_grants_by_federal_state(state, options={})
41
+ response = get("loans_grants/federal_and_state_financing_for/#{state}.json", options)
42
+ end
43
+
44
+ # Returns all small business financing programs for a specific industry in all 54 states and territories (when available).
45
+ #
46
+ # @param industry [String] input one of the standard industry values: Agriculture,Child Care,Environmental Management,Health Care,Manufacturing,Technology,Tourism
47
+ # @param options [Hash] A customizable set of options.
48
+ # @return {Hash}
49
+ # @see http://www.sba.gov/content/loans-grants-search-api-industry-method
50
+ # @example
51
+ # SBA.loan_grants_by_industry("Technology")
52
+ def loan_grants_by_industry(industry, options={})
53
+ response = get("loans_grants/nil/for_profit/#{industry}/nil.json", options)
54
+ end
55
+
56
+ # Returns small business special financing programs for certain business owner groups (e.g., women, veterans, minorities, etc.); or business activities (e.g., export, energy efficiency, disaster assistance, etc.).
57
+ #
58
+ # @param industry [String] input one or more of the standard industry values
59
+ # @param options [Hash] A customizable set of options.
60
+ # @return {Hash}
61
+ # @see http://www.sba.gov/content/loans-grants-search-api-specialty-method
62
+ # @example
63
+ # SBA.loan_grants_by_specialty("general_purpose")
64
+ # SBA.loan_grants_by_specialty("general_purpose-rural")
65
+ def loan_grants_by_specialty(specialty, options={})
66
+ response = get("loans_grants/nil/for_profit/nil/#{specialty}.json", options)
67
+ end
68
+
69
+ # Returns financing programs for specific industries AND specific business groups (e.g., women, veterans, minorities, etc.); or business activities (e.g., export, energy efficiency, disaster assistance, etc.).
70
+ #
71
+ # @param industry [String] input one or more of the standard industry values
72
+ # @param specialty [String] input one or more of the stanard industry values
73
+ # @param options [Hash] A customizable set of options.
74
+ # @return {Hash}
75
+ # @see http://www.sba.gov/content/loans-grants-search-api-industry-and-specialty-method
76
+ # @example
77
+ # SBA.loan_grants_by_industry_specialty("technology", "contractor")
78
+ # SBA.loan_grants_by_industry_specialty("technology, "general_purpose-rural")
79
+ def loan_grants_by_industry_specialty(industry, specialty, options={})
80
+ response = get("loans_grants/nil/for_profit/#{industry}/#{specialty}.json", options)
81
+ end
82
+
83
+ # Returns all small business financing programs for a specific industry in a specific state.
84
+ #
85
+ # @param state [String] input the two leterl postal code for state abbreviation
86
+ # @param industry [String] input one or more of the standard industry values
87
+ # @param options [Hash] A customizable set of options.
88
+ # @return {Hash}
89
+ # @see http://www.sba.gov/content/loans-grants-search-api-state-and-industry-method
90
+ # @example
91
+ # SBA.loan_grants_by_state_industry("ca", "technology")
92
+ def loan_grants_by_state_industry(state, industry, options={})
93
+ response = get("loans_grants/#{state}/for_profit/#{industry}/nil.json", options)
94
+ end
95
+
96
+ # Returns state programs for specific business groups or specialized business activities.
97
+ #
98
+ # @param state [String] input the two leterl postal code for state abbreviation
99
+ # @param specialty [String] input one or more of the stanard industry values
100
+ # @param options [Hash] A customizable set of options.
101
+ # @return {Hash}
102
+ # @see http://www.sba.gov/content/loans-grants-search-api-state-and-specialty-method
103
+ # @example
104
+ # SBA.loan_grants_by_state_specialty("ca", "development")
105
+ def loan_grants_by_state_specialty(state, specialty, options={})
106
+ response = get("loans_grants/#{state}/for_profit/nil/#{specialty}.json", options)
107
+ end
108
+
109
+ # Returns state programs by industry and specific business groups or specialized business activities.
110
+ #
111
+ # @param state [String] input the two leterl postal code for state abbreviation
112
+ # @param industry [String] input one or more of the standard industry values
113
+ # @param specialty [String] input one or more of the stanard industry values
114
+ # @param options [Hash] A customizable set of options.
115
+ # @return {Hash}
116
+ # @see http://www.sba.gov/content/loans-grants-search-api-state-industry-and-specialty-method
117
+ # @example
118
+ # SBA.loan_grants_by_state_industry_specialty("ca","tecnology","development")
119
+ def loan_grants_by_state_industry_specialty(state, industry, specialty, options={})
120
+ response = get("loans_grants/#{state}/for_profit/#{industry}/#{specialty}.json", options)
121
+ end
122
+
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,37 @@
1
+ module SBA
2
+ class Client
3
+ module Request
4
+ def get(path, options={}, raw=false)
5
+ request(:get, path, options, raw)
6
+ end
7
+
8
+ def post(path, options={}, raw=false)
9
+ request(:post, path, options, raw)
10
+ end
11
+
12
+ def put(path, options={}, raw=false)
13
+ request(:put, path, options, raw)
14
+ end
15
+
16
+ def delete(path, options={}, raw=false)
17
+ request(:delete, path, options, raw)
18
+ end
19
+
20
+ private
21
+
22
+ def request(method, path, options, raw)
23
+ response = connection(raw).send(method) do |request|
24
+ case method
25
+ when :get, :delete
26
+ request.url(path, options)
27
+ when :post, :put
28
+ request.path = path
29
+ request.body = options unless options.empty?
30
+ end
31
+ end
32
+ raw ? response : response.body
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,71 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'json'
3
+
4
+ module SBA
5
+ class Client
6
+ module Sites
7
+ include SBA::Client::Connection
8
+
9
+ # Returns all recommended sites for all keywords and phrases.
10
+ #
11
+ # @format :xml
12
+ # @return {Hash}
13
+ # @see http://www.sba.gov/about-sba-services/7630#all
14
+ # @example Returns recommended sites for keywords and phrases
15
+ # SBA.all_sites
16
+ def all_sites(options={})
17
+ response = get("rec_sites/all_sites/keywords.json", options)
18
+ #simplify_response(response)
19
+ end
20
+
21
+ # Returns all recommended sites for a specific keyword.
22
+ #
23
+ # @param keyword [String] A search word or phrase.
24
+ # @param options [Hash] A customizable set of options.
25
+ # @return {Hash}
26
+ # @see http://www.sba.gov/about-sba-services/7630#keyword
27
+ # @example
28
+ # SBA.sites_by_keyword("contracting")
29
+ def sites_by_keyword(keyword, options={})
30
+ response = get("rec_sites/keywords/#{keyword}.json", options)
31
+ end
32
+
33
+ # Returns all recommended sites for a specific category.
34
+ #
35
+ # @param category [String] Name of standard category.
36
+ # @param options [Hash] A customizable set of options.
37
+ # @return {Hash}
38
+ # @see http://www.sba.gov/about-sba-services/7630#category
39
+ # @example
40
+ # SBA.sites_by_category("managing a business")
41
+ def sites_by_category(category, options={})
42
+ response = get("rec_sites/category/#{category}.json", options)
43
+ end
44
+
45
+ # Returns all recommended sites assigned a specific master term.
46
+ #
47
+ # @param term [String] A standard search word or phrase assigned to group of synonyms
48
+ # @param options [Hash] A customizable set of options.
49
+ # @return {Hash}
50
+ # @see http://www.sba.gov/about-sba-services/7630#master
51
+ # @example
52
+ # SBA.sites_by_master_term("export")
53
+ def sites_by_master_term(term, options={})
54
+ response = get("rec_sites/keywords/master_term/#{term}.json", options)
55
+ end
56
+
57
+ # Returns all recommended sites belonging to a specific domain
58
+ #
59
+ # @param domain [String] Domain name without the www or .com, .gov, .net
60
+ # @param options [Hash] A customizable set of options.
61
+ # @return {Hash}
62
+ # @see http://www.sba.gov/about-sba-services/7630#category
63
+ # @example
64
+ # SBA.sites_by_domain("irs")
65
+ def sites_by_domain(domain, options={})
66
+ response = get("rec_sites/keywords/domain/#{domain}.json", options)
67
+ end
68
+
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,134 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'json'
3
+
4
+ module SBA
5
+ class Client
6
+ module Urls
7
+ include SBA::Client::Connection
8
+
9
+ # Returns primary URLS for All Cities and Counties in a State
10
+ #
11
+ # @param state [String] The two letter postal code for the state abbreviation
12
+ # @param options [Hash] A customizable set of options.
13
+ # @return {Hash}
14
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-primary-methods#all
15
+ # @example
16
+ # SBA.all_primary_urls_in_state("ca")
17
+ def all_primary_urls_in_state(state, options={})
18
+ response = get("geodata/primary_city_county_links_for_state_of/#{state}.json", options)
19
+ end
20
+
21
+ # Returns primary URLS for All Cities in a State
22
+ #
23
+ # @param state [String] The two letter postal code for the state abbreviation
24
+ # @param options [Hash] A customizable set of options.
25
+ # @return {Hash}
26
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-primary-methods#allcity
27
+ # @example
28
+ # SBA.all_city_primary_urls_in_state("ca")
29
+ def all_city_primary_urls_in_state(state, options={})
30
+ response = get("geodata/primary_city_links_for_state_of/#{state}.json", options)
31
+ end
32
+
33
+ # Returns primary URLS for All Counties in a State
34
+ #
35
+ # @param state [String] The two letter postal code for the state abbreviation
36
+ # @param options [Hash] A customizable set of options.
37
+ # @return {Hash}
38
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-primary-methods#allcounty
39
+ # @example
40
+ # SBA.all_county_primary_urls_in_state("ca")
41
+ def all_county_primary_urls_in_state(state, options={})
42
+ response = get("geodata/primary_county_links_for_state_of/#{state}.json", options)
43
+ end
44
+
45
+ # Returns the primary URL for a specific city
46
+ #
47
+ # @param city [String] Input the name of the city, town or village.
48
+ # @param state [String] The two letter postal code for the state abbreviation.
49
+ # @param options [Hash] A customizable set of options.
50
+ # @return {Hash}
51
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-primary-methods#city
52
+ # @example
53
+ # SBA.primary_url_for_city("ca")
54
+ def primary_url_for_city(city, state, options={})
55
+ response = get("geodata/primary_links_for_city_of/#{city}/#{state}.json", options)
56
+ end
57
+
58
+ # Returns the primary URL for a specific County
59
+ #
60
+ # @param county [String] Input the name of the county (or its equivalent), including the word county in the name
61
+ # @param state [String] The two letter postal code for the state abbreviation.
62
+ # @param options [Hash] A customizable set of options.
63
+ # @return {Hash}
64
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-primary-methods#county
65
+ # @example
66
+ # SBA.all_primary_urls_for_county("king county", "wa")
67
+ def all_primary_urls_for_county(county, state, options={})
68
+ response = get("geodata/primary_links_for_county_of/#{county}/#{state}.json", options)
69
+ end
70
+
71
+ # Returns All City and County URLS in a State
72
+ #
73
+ # @param state [String] The two letter postal code for the state abbreviation.
74
+ # @param options [Hash] A customizable set of options.
75
+ # @return {Hash}
76
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-all-urls
77
+ # @example
78
+ # SBA.all_urls_city_county("ca")
79
+ def all_urls_city_county(state, options={})
80
+ response = get("geodata/city_county_links_for_state_of/#{state}.json", options)
81
+ end
82
+
83
+ # Returns All City URLS in a State
84
+ #
85
+ # @param state [String] The two letter postal code for the state abbreviation.
86
+ # @param options [Hash] A customizable set of options.
87
+ # @return {Hash}
88
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-all-urls
89
+ # @example
90
+ # SBA.all_urls_city("ca")
91
+ def all_urls_city(state, options={})
92
+ response = get("geodata/city_links_for_state_of/#{state}.json", options)
93
+ end
94
+
95
+ # Returns All County URLS in a State
96
+ #
97
+ # @param state [String] The two letter postal code for the state abbreviation.
98
+ # @param options [Hash] A customizable set of options.
99
+ # @return {Hash}
100
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-all-urls
101
+ # @example
102
+ # SBA.all_urls_county("ca")
103
+ def all_urls_county(state, options={})
104
+ response = get("geodata/county_links_for_state_of/#{state}.json", options)
105
+ end
106
+
107
+ # Returns All URLS for a specific city
108
+ #
109
+ # @param city [String] Input the name of the city, town or village.
110
+ # @param state [String] The two letter postal code for the state abbreviation.
111
+ # @param options [Hash] A customizable set of options.
112
+ # @return {Hash}
113
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-all-urls
114
+ # @example
115
+ # SBA.all_urls_specific_city("dallas","tx")
116
+ def all_urls_specific_city(city, state, options={})
117
+ response = get("geodata/all_links_for_city_of/#{city}/#{state}.json", options)
118
+ end
119
+
120
+ # Returns All URLS for a specific county
121
+ #
122
+ # @param city [String] Input the name of the county.
123
+ # @param state [String] The two letter postal code for the state abbreviation.
124
+ # @param options [Hash] A customizable set of options.
125
+ # @return {Hash}
126
+ # @see http://www.sba.gov/content/us-city-and-county-web-data-api-city-county-data-all-urls
127
+ # @example
128
+ # SBA.all_urls_specific_county("orange county", "ca")
129
+ def all_urls_specific_county(county, state, options={})
130
+ response = get("geodata/all_links_for_county_of/#{county}/#{state}.json", options)
131
+ end
132
+ end
133
+ end
134
+ end