Sha256: 1fa22cd65370f0d699c835dd6cfd20d414c42579eeb16102d09af1bd23b289e9

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

require File.expand_path("../connection", __FILE__)
require File.expand_path("../oauth", __FILE__)

module Pocket
  # @private
  class API
    # @private
    attr_accessor :adapter,
      :consumer_key,
      :access_token,
      :endpoint,
      :redirect_uri,
      :format,
      :user_agent,
      :proxy

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

    include Connection
    include OAuth
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pocket-ruby-0.6.0 lib/pocket/api.rb