Sha256: 511b0ebc7adb6d7768c8a058eeb203f7ea25aba0b9f3f4ebf16f541716250415

Contents?: true

Size: 474 Bytes

Versions: 8

Compression:

Stored size: 474 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

8 entries across 8 versions & 2 rubygems

Version Path
pocket-ruby-0.5.0 lib/pocket/api.rb
pocket-ruby-0.4.0 lib/pocket/api.rb
pocket-ruby-0.3.0 lib/pocket/api.rb
pocket-ruby-0.2.1 lib/pocket/api.rb
pocket-ruby-0.2.0 lib/pocket/api.rb
pocket-ruby-0.1.0 lib/pocket/api.rb
pocket-ruby-andyw8-0.1.0 lib/pocket/api.rb
pocket-ruby-andyw8-0.0.8 lib/pocket/api.rb