Sha256: 7f30630b1d3eee70198b7a2e8258d41d465c47b10e49a5d38cee60bb30d18cbd

Contents?: true

Size: 577 Bytes

Versions: 8

Compression:

Stored size: 577 Bytes

Contents

require 'assistly/error'
require 'assistly/configuration'
require 'assistly/api'
require 'assistly/client'
# require 'assistly/search'

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

8 entries across 8 versions & 1 rubygems

Version Path
assistly-0.2.1 lib/assistly.rb
assistly-0.2.0 lib/assistly.rb
assistly-0.1.5 lib/assistly.rb
assistly-0.1.4 lib/assistly.rb
assistly-0.1.3 lib/assistly.rb
assistly-0.1.2 lib/assistly.rb
assistly-0.1.1 lib/assistly.rb
assistly-0.1 lib/assistly.rb