Module: Hackeroo
- Extended by:
- Configurable
- Defined in:
- lib/hackeroo.rb,
lib/hackeroo/base.rb,
lib/hackeroo/user.rb,
lib/hackeroo/error.rb,
lib/hackeroo/stage.rb,
lib/hackeroo/artist.rb,
lib/hackeroo/client.rb,
lib/hackeroo/cursor.rb,
lib/hackeroo/default.rb,
lib/hackeroo/version.rb,
lib/hackeroo/api/users.rb,
lib/hackeroo/api/utils.rb,
lib/hackeroo/api/stages.rb,
lib/hackeroo/rate_limit.rb,
lib/hackeroo/api/artists.rb,
lib/hackeroo/performance.rb,
lib/hackeroo/configurable.rb,
lib/hackeroo/error/forbidden.rb,
lib/hackeroo/error/not_found.rb,
lib/hackeroo/api/performances.rb,
lib/hackeroo/error/bad_gateway.rb,
lib/hackeroo/error/bad_request.rb,
lib/hackeroo/error/client_error.rb,
lib/hackeroo/error/decode_error.rb,
lib/hackeroo/error/server_error.rb,
lib/hackeroo/error/unauthorized.rb,
lib/hackeroo/response/parse_json.rb,
lib/hackeroo/error/not_acceptable.rb,
lib/hackeroo/response/raise_error.rb,
lib/hackeroo/error/gateway_timeout.rb,
lib/hackeroo/error/too_many_requests.rb,
lib/hackeroo/error/configuration_error.rb,
lib/hackeroo/error/service_unavailable.rb,
lib/hackeroo/error/unprocessable_entity.rb,
lib/hackeroo/error/internal_server_error.rb,
lib/hackeroo/error/identity_map_key_error.rb
Defined Under Namespace
Modules: API, Configurable, Default, Response Classes: Artist, Base, Client, Cursor, Error, Performance, RateLimit, Stage, User, Version
Instance Attribute Summary
Attributes included from Configurable
#clientkey, #connection_options, #endpoint, #identity_map, #middleware
Class Method Summary collapse
-
.client ⇒ Hackeroo::Client
Delegate to a Hackeroo::Client.
-
.client? ⇒ Boolean
Has a client been initialized on the Hackeroo module.
Instance Method Summary collapse
- #respond_to?(method_name, include_private = false) ⇒ Boolean
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Methods included from Configurable
bearer_token?, configure, credentials?, keys, reset!, user_token?
Class Method Details
.client ⇒ Hackeroo::Client
Delegate to a Hackeroo::Client
15 16 17 18 |
# File 'lib/hackeroo.rb', line 15 def client @client = Hackeroo::Client.new() unless defined?(@client) && @client.hash == .hash @client end |
.client? ⇒ Boolean
Has a client been initialized on the Hackeroo module
23 24 25 |
# File 'lib/hackeroo.rb', line 23 def client? !!@client end |
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
28 |
# File 'lib/hackeroo.rb', line 28 def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end |
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
27 |
# File 'lib/hackeroo.rb', line 27 def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end |