Class: CassClient::Base
- Inherits:
-
Object
show all
- Includes:
- Connection
- Defined in:
- lib/cass_fmadata_client/base.rb
Constant Summary
Constants included
from Connection
Connection::DEFAULT_MAX_RETRIES, Connection::DEFAULT_RETRY_INTERVAL, Connection::DEFAULT_URL, Connection::DEFAULT_VERSION
Instance Method Summary
collapse
Methods included from Connection
#base_url, #headers, #setup_connection
Constructor Details
#initialize(p = {}) ⇒ Base
Returns a new instance of Base.
5
6
7
|
# File 'lib/cass_fmadata_client/base.rb', line 5
def initialize(p={})
setup_connection(p)
end
|
Instance Method Details
#address(p = {}) ⇒ Object
29
30
31
|
# File 'lib/cass_fmadata_client/base.rb', line 29
def address(p = {})
send_request(p, address_url)
end
|
#city_county(p = {}) ⇒ Object
13
14
15
|
# File 'lib/cass_fmadata_client/base.rb', line 13
def city_county(p = {})
send_request(p, city_county_url)
end
|
#city_zip(p = {}) ⇒ Object
25
26
27
|
# File 'lib/cass_fmadata_client/base.rb', line 25
def city_zip(p = {})
send_request(p, city_zip_url)
end
|
#search_by_address(p = {}) ⇒ Object
17
18
19
|
# File 'lib/cass_fmadata_client/base.rb', line 17
def search_by_address(p = {})
send_request(p, search_by_address_url)
end
|
#state_county(p = {}) ⇒ Object
21
22
23
|
# File 'lib/cass_fmadata_client/base.rb', line 21
def state_county(p = {})
send_request(p, state_county_url)
end
|
#tiger(p = {}) ⇒ Object
9
10
11
|
# File 'lib/cass_fmadata_client/base.rb', line 9
def tiger(p = {})
send_request(p, tiger_url)
end
|