Sha256: 83e206aa4753a03785c09d96ee6b8b8d6262ee8d893b826ed11119d0d1ee1037

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

require 'angellist_api/client'
require 'angellist_api/configuration'

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.1.0 lib/angellist_api.rb
angellist_api-1.0.7 lib/angellist_api.rb
angellist_api-1.0.6 lib/angellist_api.rb
angellist_api-1.0.5 lib/angellist_api.rb
angellist_api-1.0.4 lib/angellist_api.rb
angellist_api-1.0.3 lib/angellist_api.rb
angellist_api-1.0.2 lib/angellist_api.rb