Sha256: a6f7327ce3273e49cf5c3870b219ba575796bcd5b48b3868369b108ac30b7d31

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

require 'assistly/error'
require 'assistly/configuration'
require 'assistly/api'
require 'assistly/client'
require 'pony'

module Assistly
  extend Configuration

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

  # Delegate to Assistly::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?(method)
    client.respond_to?(method) || super
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
assistly-0.2.6 lib/assistly.rb
assistly-0.2.5 lib/assistly.rb
assistly-0.2.4 lib/assistly.rb
assistly-0.2.3 lib/assistly.rb