module Tankard
Sets up and delegates 'most' method calls to the Tankard
Client
@author Matthew Shafer
Current Version of the Gem
@author Matthew Shafer
Constants
- VERSION
Public Class Methods
client()
click to toggle source
# File lib/tankard.rb, line 16 def client @client.compare_and_swap(nil, Tankard::Client.new(credentials)) @client.value end
respond_to?(method)
click to toggle source
# File lib/tankard.rb, line 21 def respond_to?(method) client.respond_to?(method) end
Private Class Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/tankard.rb, line 27 def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end
reset_client()
click to toggle source
# File lib/tankard.rb, line 32 def reset_client @client.value = nil end