Module: SBA::Client::Urls

Includes:
Connection
Included in:
SBA::Client
Defined in:
lib/sba/client/urls.rb

Instance Method Summary collapse

Instance Method Details

#all_city_primary_urls_in_state(state, options = {}) ⇒ Hash

Returns primary URLS for All Cities in a State

Examples:

SBA.all_city_primary_urls_in_state("ca")      

Parameters:

  • state (String)

    The two letter postal code for the state abbreviation

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



29
30
31
# File 'lib/sba/client/urls.rb', line 29

def all_city_primary_urls_in_state(state, options={})
  response = get("geodata/primary_city_links_for_state_of/#{state}.json", options)
end

#all_county_primary_urls_in_state(state, options = {}) ⇒ Hash

Returns primary URLS for All Counties in a State

Examples:

SBA.all_county_primary_urls_in_state("ca")      

Parameters:

  • state (String)

    The two letter postal code for the state abbreviation

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



41
42
43
# File 'lib/sba/client/urls.rb', line 41

def all_county_primary_urls_in_state(state, options={})
  response = get("geodata/primary_county_links_for_state_of/#{state}.json", options)
end

#all_primary_urls_for_county(county, state, options = {}) ⇒ Hash

Returns the primary URL for a specific County

Examples:

SBA.all_primary_urls_for_county("king county", "wa")      

Parameters:

  • county (String)

    Input the name of the county (or its equivalent), including the word county in the name

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



67
68
69
# File 'lib/sba/client/urls.rb', line 67

def all_primary_urls_for_county(county, state, options={})
  response = get("geodata/primary_links_for_county_of/#{county}/#{state}.json", options)
end

#all_primary_urls_in_state(state, options = {}) ⇒ Hash

Returns primary URLS for All Cities and Counties in a State

Examples:

SBA.all_primary_urls_in_state("ca")    

Parameters:

  • state (String)

    The two letter postal code for the state abbreviation

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



17
18
19
# File 'lib/sba/client/urls.rb', line 17

def all_primary_urls_in_state(state, options={})
  response = get("geodata/primary_city_county_links_for_state_of/#{state}.json", options)
end

#all_urls_city(state, options = {}) ⇒ Hash

Returns All City URLS in a State

Examples:

SBA.all_urls_city("ca")

Parameters:

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



91
92
93
# File 'lib/sba/client/urls.rb', line 91

def all_urls_city(state, options={})
  response = get("geodata/city_links_for_state_of/#{state}.json", options)
end

#all_urls_city_county(state, options = {}) ⇒ Hash

Returns All City and County URLS in a State

Examples:

SBA.all_urls_city_county("ca")

Parameters:

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



79
80
81
# File 'lib/sba/client/urls.rb', line 79

def all_urls_city_county(state, options={})
  response = get("geodata/city_county_links_for_state_of/#{state}.json", options)
end

#all_urls_county(state, options = {}) ⇒ Hash

Returns All County URLS in a State

Examples:

SBA.all_urls_county("ca")      

Parameters:

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



103
104
105
# File 'lib/sba/client/urls.rb', line 103

def all_urls_county(state, options={})
  response = get("geodata/county_links_for_state_of/#{state}.json", options)
end

#all_urls_specific_city(city, state, options = {}) ⇒ Hash

Returns All URLS for a specific city

Examples:

SBA.all_urls_specific_city("dallas","tx")

Parameters:

  • city (String)

    Input the name of the city, town or village.

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



116
117
118
# File 'lib/sba/client/urls.rb', line 116

def all_urls_specific_city(city, state, options={})
  response = get("geodata/all_links_for_city_of/#{city}/#{state}.json", options)
end

#all_urls_specific_county(county, state, options = {}) ⇒ Hash

Returns All URLS for a specific county

Examples:

SBA.all_urls_specific_county("orange county", "ca")      

Parameters:

  • city (String)

    Input the name of the county.

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



129
130
131
# File 'lib/sba/client/urls.rb', line 129

def all_urls_specific_county(county, state, options={})
  response = get("geodata/all_links_for_county_of/#{county}/#{state}.json", options)
end

#primary_url_for_city(city, state, options = {}) ⇒ Hash

Returns the primary URL for a specific city

Examples:

SBA.primary_url_for_city("ca")

Parameters:

  • city (String)

    Input the name of the city, town or village.

  • state (String)

    The two letter postal code for the state abbreviation.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hash)

See Also:



54
55
56
# File 'lib/sba/client/urls.rb', line 54

def primary_url_for_city(city, state, options={})
  response = get("geodata/primary_links_for_city_of/#{city}/#{state}.json", options)
end