module Touth
Constants
- MAJOR
- MINOR
- REVISION
- VERSION
Public Class Methods
digest(data)
click to toggle source
# File lib/touth.rb, line 43 def digest(data) @digest_method ||= OpenSSL::Digest.new 'sha256' OpenSSL::HMAC.digest @digest_method, self.client_secret_key, data end
get_resource_name(name)
click to toggle source
# File lib/touth.rb, line 48 def get_resource_name(name) name.to_s.gsub('::', '_').underscore end
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/touth.rb, line 52 def method_missing(method_name, *args, &block) if @config.respond_to? method_name @config.send method_name, *args, &block else super end end
respond_to?(method_name, include_private = false)
click to toggle source
# File lib/touth.rb, line 60 def respond_to?(method_name, include_private = false) @config.respond_to? method_name end
setup() { |config| ... }
click to toggle source
# File lib/touth.rb, line 38 def setup @config ||= Configuration.new yield @config if block_given? end