Sha256: 35f5d9d10451fab3e32f7e966ea598fde8a65b635dce59f4f080a80676aaf9a9
Contents?: true
Size: 831 Bytes
Versions: 4
Compression:
Stored size: 831 Bytes
Contents
require 'hello_sign/version' require 'hello_sign/configuration' require 'hello_sign/client' module HelloSign extend Configuration # # # If HelloSign module don't respond_to? method, then delegate it to HelloSign::Client # @param method [Symbol] method name # @param *args [Array] arguments passed into the method # @param &block [Block] a block passed into the method # def self.method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end # # If HelloSign module don't respond_to? method, ask HelloSign::Client whether it respond or not # @param method [Symbol] method name # def self.respond_to?(method) return super || client.respond_to?(method) end private def self.client HelloSign::Client.new end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hellosign-ruby-sdk-3.0.3 | lib/hello_sign.rb |
hellosign-ruby-sdk-3.0.2 | lib/hello_sign.rb |
hellosign-ruby-sdk-3.0.1 | lib/hello_sign.rb |
hellosign-ruby-sdk-3.0.0 | lib/hello_sign.rb |