Sha256: fddc8fac4677212cea6245ea949d8764498e16f4b7c23cc1b958289a6a7a539e

Contents?: true

Size: 556 Bytes

Versions: 13

Compression:

Stored size: 556 Bytes

Contents

require 'angellist_api/authentication'
require 'angellist_api/configuration'
require 'angellist_api/connection'
require 'angellist_api/request'

module AngellistApi
  # @private
  class API
    include Connection
    include Request
    include Authentication

    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

    # Creates a new API
    def initialize(options={})
      options = AngellistApi.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
angellist_api-1.0.1 lib/angellist_api/api.rb
angellist_api-0.1.2 lib/angellist_api/api.rb
angellist_api-1.0.0 lib/angellist_api/api.rb
angellist_api-0.1.0 lib/angellist_api/api.rb
angellist_api-0.0.9 lib/angellist_api/api.rb
angellist_api-0.0.8 lib/angellist_api/api.rb
angellist_api-0.0.7 lib/angellist_api/api.rb
angellist_api-0.0.6 lib/angellist_api/api.rb
angellist_api-0.0.5 lib/angellist_api/api.rb
angellist_api-0.0.4 lib/angellist_api/api.rb
angellist_api-0.0.3 lib/angellist_api/api.rb
angellist_api-0.0.2 lib/angellist_api/api.rb
angellist_api-0.0.1 lib/angellist_api/api.rb