Sha256: ff81ef758f68cf9e10907b44cf55a7ceefa9ad5133edf64646a602da0aa3524d

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

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

module Sambatech
  extend Configuration

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sambatech-0.0.1 lib/sambatech.rb