Sha256: 84a5fd8c004a9aac47725085397428c9b7eae51fea1f2d10af7fc7ebc24d54f4

Contents?: true

Size: 532 Bytes

Versions: 5

Compression:

Stored size: 532 Bytes

Contents

require 'storenvy/client'

module Storenvy
  class << self
    # Alias for Storenvy::Client.new
    #
    # @return [Storenvy::Client]
    def new(options={})
      Storenvy::Client.new(options)
    end

    # Delegate to Storenvy::Client
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private=false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
storenvy-0.1.3 lib/storenvy.rb
storenvy-0.1.1 lib/storenvy.rb
storenvy-0.1.0 lib/storenvy.rb
storenvy-0.0.2 lib/storenvy.rb
storenvy-0.0.1 lib/storenvy.rb