Sha256: 6f10a4a74df85eb7b25ea0731fb39e53667a4733c8cee5dea5e3ccd02a008e4d

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

require File.expand_path("../pocket/error", __FILE__)
require File.expand_path("../pocket/configuration", __FILE__)
require File.expand_path("../pocket/api", __FILE__)
require File.expand_path("../pocket/client", __FILE__)
require File.expand_path("../pocket/article", __FILE__)
require File.expand_path("../pocket/author", __FILE__)

module Pocket
  extend Configuration

  # Alias for Pocket::Client.new
  #
  # @return [Pocket::Client]
  def self.client(options = {})
    Pocket::Client.new(options)
  end

  # Delegate to Pocket::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)
    client.send(method, *args, &block)
  end

  # Delegate to Pocket::Client
  def self.respond_to_missing?(method)
    client.respond_to?(method) || super
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pocket-ruby-0.2.1 lib/pocket-ruby.rb
pocket-ruby-0.2.0 lib/pocket-ruby.rb