Sha256: 4678e2cfcd49e9feab8e6b150174863492542a064d18f1e1179435be8f62356e

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

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

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

1 entries across 1 versions & 1 rubygems

Version Path
assistly-0.2.2 lib/assistly.rb