Class: Diversion::Client
- Inherits:
-
Object
- Object
- Diversion::Client
- Includes:
- Configurable, Decode, Encode
- Defined in:
- lib/diversion/client.rb
Constant Summary
Constants included from Decode
Constants included from Signing
Constants included from Encode
Instance Attribute Summary
Attributes included from Configurable
#encode_uris, #host, #path, #port, #sign_key, #sign_length, #url_decoding, #url_encoding
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Decode
Methods included from Signing
Methods included from Encode
Methods included from Encode::Json
Methods included from Configurable
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 |
# File 'lib/diversion/client.rb', line 13 def initialize(={}) Diversion::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || Diversion.instance_variable_get(:"@#{key}")) end end |