Sha256: 6a7a98e05e48740019a32704653ea5b38c31c0656c6b8e7d6150efeb94916f35

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

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

module Desk
  extend Configuration

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

  # Delegate to Desk::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

2 entries across 2 versions & 1 rubygems

Version Path
desk-0.3.1 lib/desk.rb
desk-0.3.0 lib/desk.rb