Sha256: b1ad213016fd901f93719701f0c5192cc820b117975631e0073236b9de6d73fd

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require "teamwork/client"

module Teamwork

  class << self

    attr_accessor :api_key, :subdomain

    def client
      @client ||= Teamwork::Client.new
    end

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

    private

    def method_missing(method_name, *args, &block)
      return super unless client.respond_to?(method_name)
      client.send(method_name, *args, &block)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
teamworkpm-2.0.0 lib/teamwork.rb