Sha256: 3c516f8105bb532514683af78da262d9570a48aee8cf2861d76115d5f3222179

Contents?: true

Size: 638 Bytes

Versions: 3

Compression:

Stored size: 638 Bytes

Contents

require 'getty_connect/config'
require 'getty_connect/client'
require 'getty_connect/error'

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

    # Delegate to GettyConnect::Client.new
    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

3 entries across 3 versions & 1 rubygems

Version Path
getty_connect-0.0.4 lib/getty_connect.rb
getty_connect-0.0.3 lib/getty_connect.rb
getty_connect-0.0.2 lib/getty_connect.rb