Sha256: 0f14dcdb7322543ca763bb1cb6e362754529b198b19366f56a37ab13aeff5bbf

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

require File.expand_path('../thounds/error', __FILE__)
require File.expand_path('../thounds/configuration', __FILE__)
require File.expand_path('../thounds/api', __FILE__)
require File.expand_path('../thounds/client', __FILE__)

module Thounds
  extend Configuration

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thounds-0.0.2 lib/thounds.rb
thounds-0.0.1 lib/thounds.rb