Sha256: b5847e93e6035dca8fd579c23ac401ee35362585b98b4864db3b02d1ec05ab61

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 Bytes

Contents

require 'goacoustic/client'

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

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

4 entries across 4 versions & 1 rubygems

Version Path
goacoustic-0.1.4 lib/goacoustic.rb
goacoustic-0.1.3 lib/goacoustic.rb
goacoustic-0.1.2 lib/goacoustic.rb
goacoustic-0.1.1 lib/goacoustic.rb