Sha256: 8ed718d07fde6b107ee07a6efedfc17523feaff3dd29b2b1a03f9bb5209b3cc5

Contents?: true

Size: 680 Bytes

Versions: 12

Compression:

Stored size: 680 Bytes

Contents

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

module Desk
  extend Configuration
  @counter = 0
  @minute = Time.now.min

  class << self
    attr_accessor :counter, :minute

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

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

    def respond_to?(method, include_private=false)
      client.respond_to?(method, include_private) || super
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
desk-1.2.0 lib/desk.rb
desk-1.1.1 lib/desk.rb
desk-1.1.0 lib/desk.rb
desk-1.0.10 lib/desk.rb
desk-1.0.9 lib/desk.rb
desk-1.0.8 lib/desk.rb
desk-1.0.7 lib/desk.rb
desk-1.0.6 lib/desk.rb
desk-1.0.5 lib/desk.rb
desk-1.0.4 lib/desk.rb
desk-1.0.3 lib/desk.rb
desk-1.0.2 lib/desk.rb