Sha256: b6d1436da84acb3d3bef51228afae3609ea775877dcd9847779c7dfb95267843

Contents?: true

Size: 536 Bytes

Versions: 6

Compression:

Stored size: 536 Bytes

Contents

require 'bigcartel/client'

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

    # Delegate to Twitter::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

6 entries across 6 versions & 1 rubygems

Version Path
bigcartel-1.0.6 lib/bigcartel.rb
bigcartel-1.0.5 lib/bigcartel.rb
bigcartel-1.0.4 lib/bigcartel.rb
bigcartel-1.0.3 lib/bigcartel.rb
bigcartel-1.0.2 lib/bigcartel.rb
bigcartel-1.0.1 lib/bigcartel.rb