Sha256: 4983fdef5ef2097581e177db2ae0387fe4eb9dc159b4a4c08439206df49cf29f

Contents?: true

Size: 677 Bytes

Versions: 7

Compression:

Stored size: 677 Bytes

Contents

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

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

7 entries across 7 versions & 1 rubygems

Version Path
angellist_api-1.0.1 lib/angellist_api.rb
angellist_api-0.1.2 lib/angellist_api.rb
angellist_api-1.0.0 lib/angellist_api.rb
angellist_api-0.1.0 lib/angellist_api.rb
angellist_api-0.0.9 lib/angellist_api.rb
angellist_api-0.0.8 lib/angellist_api.rb
angellist_api-0.0.7 lib/angellist_api.rb