Module: Flix

Extended by:
Configurable
Defined in:
lib/flix.rb,
lib/flix/user.rb,
lib/flix/client.rb,
lib/flix/default.rb,
lib/flix/version.rb,
lib/flix/configurable.rb,
lib/flix/identity_map.rb

Defined Under Namespace

Modules: Configurable, Default Classes: Client, IdentityMap, User

Constant Summary collapse

VERSION =
"0.0.2"

Instance Attribute Summary

Attributes included from Configurable

#connection_options, #consumer_key, #consumer_secret, #endpoint, #identity_map, #middleware, #oauth_token, #oauth_token_secret

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

cache_key, configure, credentials?, keys, reset!

Class Method Details

.clientFlix::Client

Delegate to a Flix::Client

Returns:



12
13
14
15
16
17
18
# File 'lib/flix.rb', line 12

def client
  if @client && @client.cache_key == options.hash
    @client
  else
    @client = Flix::Client.new(options)
  end
end

Instance Method Details

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

Returns:

  • (Boolean)


21
# File 'lib/flix.rb', line 21

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)


20
# File 'lib/flix.rb', line 20

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