Module: SBA::Client::Licenses
Instance Method Summary collapse
-
#business_type_state(business, state, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific state.
-
#business_type_state_city(business, state, city, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific state and city.
-
#business_type_state_county(business, state, county, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific state and county.
-
#business_type_zip(business, zip, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific zip code.
-
#by_business_type(business, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business for all 54 states and territories.
-
#by_category(category, options = {}) ⇒ Hash
Returns results for a matching license or permit category for each 54 states and territories.
-
#by_state(state, options = {}) ⇒ Hash
Returns all business licenses for all business types required to operate in an specific state or territory.
Instance Method Details
#business_type_state(business, state, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific state.
60 61 62 63 |
# File 'lib/sba/client/licenses.rb', line 60 def business_type_state(business, state, ={}) response = get("license_permit/state_only/#{business}/#{state}.json", ) simplify_response(response) end |
#business_type_state_city(business, state, city, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific state and city
90 91 92 93 |
# File 'lib/sba/client/licenses.rb', line 90 def business_type_state_city(business, state, city, ={}) response = get("license_permit/state_and_city/#{business}/#{state}/#{city}.json") simplify_response(response) end |
#business_type_state_county(business, state, county, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific state and county.
75 76 77 78 |
# File 'lib/sba/client/licenses.rb', line 75 def business_type_state_county(business, state, county, ={}) response = get("license_permit/state_and_county/#{business}/#{state}/#{county}.json") simplify_response(response) end |
#business_type_zip(business, zip, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business in a specific zip code
104 105 106 107 |
# File 'lib/sba/client/licenses.rb', line 104 def business_type_zip(business, zip, ={}) response = get("license_permit/by_zip/#{business}/#{zip}.json") simplify_response(response) end |
#by_business_type(business, options = {}) ⇒ Hash
Returns business licenses and permits required for a specific type of business for all 54 states and territories
46 47 48 49 |
# File 'lib/sba/client/licenses.rb', line 46 def by_business_type(business, ={}) response = get("license_permit/by_business_type/#{business}.json", ) simplify_response(response) end |
#by_category(category, options = {}) ⇒ Hash
Returns results for a matching license or permit category for each 54 states and territories.
18 19 20 21 22 |
# File 'lib/sba/client/licenses.rb', line 18 def by_category(category, ={}) .merge!({:format=> "json"}) response = get("/license_permit/by_category/#{category}.json") simplify_response(response) end |
#by_state(state, options = {}) ⇒ Hash
Returns all business licenses for all business types required to operate in an specific state or territory.
32 33 34 35 36 |
# File 'lib/sba/client/licenses.rb', line 32 def by_state(state, ={}) .merge!({:format=> "json"}) response = get("/license_permit/all_by_state/#{state}.json", ) simplify_response(response) end |