Module: Tango
- Defined in:
- lib/tango.rb,
lib/tango/error.rb,
lib/tango/client.rb,
lib/tango/default.rb,
lib/tango/version.rb,
lib/tango/response/parse_json.rb,
lib/tango/request/json_encoded.rb,
lib/tango/response/raise_error.rb
Defined Under Namespace
Modules: Default, Request, Response Classes: Client, Error
Constant Summary collapse
- VERSION =
"1.0.2"
Class Method Summary collapse
-
.client ⇒ Tango::Client
Delegates to a client.
-
.options ⇒ Hash
Global options.
Instance Method Summary collapse
- #respond_to?(method_name, include_private = false) ⇒ Boolean
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Class Method Details
.client ⇒ Tango::Client
Delegates to a client. The client is re-initialized after any configuration option is changed.
12 13 14 15 16 17 18 |
# File 'lib/tango.rb', line 12 def client unless defined?(@client) && @client..hash == .hash @client = ::Tango::Client.new() end @client end |
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
34 35 36 |
# File 'lib/tango.rb', line 34 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
30 31 32 |
# File 'lib/tango.rb', line 30 def respond_to_missing?(method_name, include_private=false) client.respond_to?(method_name, include_private) end |