Sha256: ea718353684242f53cd01da25c1bb049682e2af8e1e1d56e852380c3a1c7ac29

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 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

4 entries across 4 versions & 1 rubygems

Version Path
open311-0.2.3 lib/open311.rb
open311-0.2.2 lib/open311.rb
open311-0.2.1 lib/open311.rb
open311-0.2.0 lib/open311.rb