Module: Strife

Extended by:
Configurable
Defined in:
lib/strife.rb,
lib/strife/error.rb,
lib/strife/client.rb,
lib/strife/default.rb,
lib/strife/version.rb,
lib/strife/client/game.rb,
lib/strife/client/team.rb,
lib/strife/client/stats.rb,
lib/strife/configurable.rb,
lib/strife/client/league.rb,
lib/strife/client/champion.rb,
lib/strife/client/summoner.rb,
lib/strife/response/raise_error.rb

Defined Under Namespace

Modules: Configurable, Default, Response Classes: Client, Error

Constant Summary collapse

VERSION =
"0.0.2"

Instance Attribute Summary

Attributes included from Configurable

#api_endpoint, #api_key, #region

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, keys, reset!

Class Method Details

.clientObject



11
12
13
14
# File 'lib/strife.rb', line 11

def client
  @client ||= Strife::Client.new(options) unless defined?(@client) && @client.same_options?(options)
  @client
end

Instance Method Details

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

Returns:

  • (Boolean)


19
# File 'lib/strife.rb', line 19

def respond_to?(method_name, include_private = false); client.respond_to?(method_name, include_private); end

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

Returns:

  • (Boolean)


17
# File 'lib/strife.rb', line 17

def respond_to_missing?(method_name, include_private = false); client.respond_to?(method_name, include_private); end