Sha256: 145d25f88e199edc91e3f86d44b37bda1a6530882aed63f958902a5bf0ac3916

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

require 'angellist_api/api'
require 'angellist_api/base'
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

5 entries across 5 versions & 1 rubygems

Version Path
angellist_api-0.0.5 lib/angellist_api.rb
angellist_api-0.0.4 lib/angellist_api.rb
angellist_api-0.0.3 lib/angellist_api.rb
angellist_api-0.0.2 lib/angellist_api.rb
angellist_api-0.0.1 lib/angellist_api.rb