Class: Worksection::Client
- Inherits:
-
Object
- Object
- Worksection::Client
- Includes:
- Creating, Editing, GettingData
- Defined in:
- lib/worksection/client.rb,
lib/worksection/modules/editing.rb,
lib/worksection/modules/creating.rb,
lib/worksection/modules/getting_data.rb
Defined Under Namespace
Modules: Creating, Editing, GettingData
Instance Attribute Summary collapse
-
#apikey ⇒ Object
include Files.
-
#domain ⇒ Object
include Files.
-
#use_ssl ⇒ Object
include Files.
Instance Method Summary collapse
-
#initialize(domain, apikey, use_ssl = true) ⇒ Client
constructor
A new instance of Client.
Methods included from Editing
#activate_project, #close_project, #complete_subtask, #complete_task, #delete_timemoney, #reopen_subtask, #reopen_task, #subscribe, #unsubscribe, #update_project, #update_subtask, #update_tags, #update_task, #update_timemoney
Methods included from Creating
#add_user, #post_comment, #post_project, #post_subtask, #post_task, #post_timemoney
Methods included from GettingData
#get_all_tasks, #get_comments, #get_priority, #get_projects, #get_task, #get_tasks, #get_timemoney, #get_users
Constructor Details
#initialize(domain, apikey, use_ssl = true) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 |
# File 'lib/worksection/client.rb', line 12 def initialize(domain, apikey, use_ssl = true) @domain = domain @apikey = apikey @use_ssl = use_ssl end |
Instance Attribute Details
#apikey ⇒ Object
include Files
10 11 12 |
# File 'lib/worksection/client.rb', line 10 def apikey @apikey end |
#domain ⇒ Object
include Files
10 11 12 |
# File 'lib/worksection/client.rb', line 10 def domain @domain end |
#use_ssl ⇒ Object
include Files
10 11 12 |
# File 'lib/worksection/client.rb', line 10 def use_ssl @use_ssl end |