Sha256: 9dab82f7e14b3ddba463c1a5af721ccb221a2c03839445deb9d7f5f17c8c3d5d

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

require 'peerindex/configuration'
require 'peerindex/connection'
require 'peerindex/request'

module Peerindex
  # @private
  class API
    include Connection
    include Request

    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peerindex-0.0.1 lib/peerindex/api.rb