Module: Teamwork

Defined in:
lib/teamwork.rb,
lib/teamwork/client.rb,
lib/teamwork/version.rb,
lib/teamwork/client/file.rb,
lib/teamwork/client/task.rb,
lib/teamwork/client/thing.rb,
lib/teamwork/client/timer.rb,
lib/teamwork/client/people.rb,
lib/teamwork/client/account.rb,
lib/teamwork/client/comment.rb,
lib/teamwork/client/company.rb,
lib/teamwork/client/message.rb,
lib/teamwork/client/project.rb,
lib/teamwork/client/activity.rb,
lib/teamwork/client/notebook.rb

Defined Under Namespace

Classes: Client, Thing

Constant Summary collapse

VERSION =
"2.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



7
8
9
# File 'lib/teamwork.rb', line 7

def api_key
  @api_key
end

.subdomainObject

Returns the value of attribute subdomain.



7
8
9
# File 'lib/teamwork.rb', line 7

def subdomain
  @subdomain
end

Class Method Details

.clientObject



9
10
11
# File 'lib/teamwork.rb', line 9

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

.respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/teamwork.rb', line 13

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