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

Instance Method Summary collapse

Methods included from Configurable

bearer_token?, configure, credentials?, keys, reset!, user_token?

Class Method Details

.clientHackeroo::Client

Delegate to a Hackeroo::Client

Returns:



15
16
17
18
# File 'lib/hackeroo.rb', line 15

def client
  @client = Hackeroo::Client.new(options) unless defined?(@client) && @client.hash == options.hash
  @client
end

.client?Boolean

Has a client been initialized on the Hackeroo module

Returns:

  • (Boolean)


23
24
25
# File 'lib/hackeroo.rb', line 23

def client?
  !!@client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (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

Returns:

  • (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