Sha256: ec79b53d8bf68e6c8358ef1ffec408243aa39c54cf47c260f70f052a7e9118c2

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 Bytes

Contents

require 'genability/api'
require 'genability/client'
require 'genability/configuration'
require 'genability/error'
require 'mashie_extensions'

module Genability
  extend Configuration

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

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

  # Delegate to Genability::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
genability-0.2.0 lib/genability.rb
genability-0.1.0 lib/genability.rb