Module: Diversion

Extended by:
Configurable
Defined in:
lib/diversion.rb,
lib/diversion/url.rb,
lib/diversion/client.rb,
lib/diversion/decode.rb,
lib/diversion/encode.rb,
lib/diversion/signing.rb,
lib/diversion/version.rb,
lib/diversion/decode/json.rb,
lib/diversion/encode/json.rb,
lib/diversion/configurable.rb,
lib/diversion/decode/params.rb,
lib/diversion/encode/params.rb,
lib/diversion/error/key_missing_error.rb,
lib/diversion/error/uri_missing_error.rb,
lib/diversion/error/bad_url_data_format.rb,
lib/diversion/error/configuration_error.rb

Defined Under Namespace

Modules: Configurable, Decode, Encode, Signing, Url Classes: Client, Error, Version

Instance Attribute Summary

Attributes included from Configurable

#encode_uris, #host, #path, #port, #sign_key, #sign_length, #url_decoding, #url_encoding

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, keys, reset!

Class Method Details

.clientDiversion::Client

Delegate to a Diversion::Client

Returns:



18
19
20
21
# File 'lib/diversion.rb', line 18

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

Instance Method Details

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

Returns:

  • (Boolean)


24
# File 'lib/diversion.rb', line 24

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)


23
# File 'lib/diversion.rb', line 23

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