Sha256: 3e1942fed439de601cec3d48d85845227d80db479d2d895437e5b3f9efb199b1

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

require 'angellist_api/api'
require 'angellist_api/client'
require 'angellist_api/configuration'
require 'angellist_api/error'
require 'angellist_api/search'

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

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

1 entries across 1 versions & 1 rubygems

Version Path
angellist_api-0.0.6 lib/angellist_api.rb