Sha256: cd4f024b0f0030728013d4c474df8d2dd17503e608850dbf956828be7dbf97cf

Contents?: true

Size: 856 Bytes

Versions: 1

Compression:

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

  def self.respond_to_missing?(method, *args, &block)
    return super unless client.respond_to?(method)
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

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