Sha256: 22fe45db0dac93f0142ff2b038e387dd359f60fe5c69c7f971742c97ffddeda2

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

require 'nypl_collections/client'

module Collections
  class << self

    def new
      @client ||= Collections::Client.new
    end

    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

1 entries across 1 versions & 1 rubygems

Version Path
nypl-collections-0.0.1 lib/nypl_collections.rb