Sha256: ea6cbb8446daccf3fe696740eacc48b0ca8697de65e934ae0808576dbb55ad14

Contents?: true

Size: 471 Bytes

Versions: 6

Compression:

Stored size: 471 Bytes

Contents

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

module Pocket
  # @private
  class API
    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

    # 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

6 entries across 6 versions & 2 rubygems

Version Path
pocket-ruby-0.0.7 lib/pocket/api.rb
pocket-ruby-andyw8-0.0.7 lib/pocket/api.rb
pocket-ruby-0.0.6 lib/pocket/api.rb
pocket-ruby-0.0.5 lib/pocket/api.rb
pocket-ruby-0.0.4 lib/pocket/api.rb
pocket-ruby-0.0.3 lib/pocket/api.rb