Sha256: 2a9a1b3fb08f9232992052d0c625dc3f610f8eb6cf10c81ed070463b4de589bd

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 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__)

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

1 entries across 1 versions & 1 rubygems

Version Path
pocket-ruby-0.1.0 lib/pocket-ruby.rb