Sha256: a6143609fa7f41449edbaa7b2564457a2fb50d9c98bca866f08ac36b7b41f1d6

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

require 'open311/configuration'
require 'open311/client'
require 'open311/error'

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

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

2 entries across 2 versions & 1 rubygems

Version Path
open311-0.3.1 lib/open311.rb
open311-0.3.0 lib/open311.rb