module Storenvy
Constants
- VERSION
Attributes
@!attribute parallel_requests
@return [Integer String] defines the maximum parallel request for the gem to preform
@!attribute secret @return [String] the secret that is registered with Storenvy
@!attribute url @return [String] the base url of the Storenvy
Api
Public Class Methods
@return an instance of Storenvy::Client
# File lib/storenvy.rb, line 42 def client @client ||= Storenvy::Client.new() end
Configuration interface of the gem
@yield [self] to accept configuration settings
# File lib/storenvy.rb, line 25 def configure yield self true end
Makes sure that the method missing is checked with the Storenvy::Client
instance
@param method_name [String] the name of the method we want to run @param include_private [Boolean] defines wether to check for private functions as well
# File lib/storenvy.rb, line 35 def respond_to_missing?(method_name, include_private=false) client.respond_to?(method_name, include_private) end
Private Class Methods
executes any function on the Storenvy::Client
instance
@param args [*] any argument that we want to pass to the client function @param block [Block] any block that is passed to the client function
# File lib/storenvy.rb, line 53 def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end