Module: NYCGeoClient
- Extended by:
- Configuration
- Defined in:
- lib/nyc_geo_client.rb,
lib/nyc_geo_client/api.rb,
lib/nyc_geo_client/error.rb,
lib/nyc_geo_client/client.rb,
lib/nyc_geo_client/request.rb,
lib/nyc_geo_client/version.rb,
lib/nyc_geo_client/client/bbl.rb,
lib/nyc_geo_client/client/bin.rb,
lib/nyc_geo_client/connection.rb,
lib/nyc_geo_client/client/place.rb,
lib/nyc_geo_client/configuration.rb,
lib/nyc_geo_client/client/address.rb,
lib/nyc_geo_client/client/blockface.rb,
lib/nyc_geo_client/client/intersection.rb
Defined Under Namespace
Modules: Configuration, Connection, Request Classes: API, Client, Error
Constant Summary collapse
- VERSION =
"2.0.0".freeze
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_DEBUG, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_SUBSCRIPTION_KEY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.client(options = {}) ⇒ NYCGeoClient::Client
Alias for NYCGeoClient::Client.new.
-
.method_missing(method, **kwargs, &block) ⇒ Object
Delegate to NYCGeoClient::Client.
-
.respond_to?(method, include_all = false) ⇒ Boolean
Delegate to NYCGeoClient::Client.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.client(options = {}) ⇒ NYCGeoClient::Client
Alias for NYCGeoClient::Client.new
12 13 14 |
# File 'lib/nyc_geo_client.rb', line 12 def self.client(={}) NYCGeoClient::Client.new() end |
.method_missing(method, **kwargs, &block) ⇒ Object
Delegate to NYCGeoClient::Client
17 18 19 20 |
# File 'lib/nyc_geo_client.rb', line 17 def self.method_missing(method, **kwargs, &block) return super unless client.respond_to?(method) client.public_send(method, **kwargs, &block) end |
.respond_to?(method, include_all = false) ⇒ Boolean
Delegate to NYCGeoClient::Client
23 24 25 |
# File 'lib/nyc_geo_client.rb', line 23 def self.respond_to?(method, include_all=false) return client.respond_to?(method) || super end |