Class: ActiveCollab::Task
- Inherits:
-
Object
- Object
- ActiveCollab::Task
- Defined in:
- lib/active_collab/task.rb
Instance Attribute Summary collapse
-
#assignee_id ⇒ Object
Returns the value of attribute assignee_id.
-
#attachments_count ⇒ Object
Returns the value of attribute attachments_count.
-
#attachments_url ⇒ Object
Returns the value of attribute attachments_url.
-
#category_id ⇒ Object
Returns the value of attribute category_id.
-
#comments_count ⇒ Object
Returns the value of attribute comments_count.
-
#comments_url ⇒ Object
Returns the value of attribute comments_url.
-
#completed_subtasks ⇒ Object
Returns the value of attribute completed_subtasks.
-
#delegated_by_id ⇒ Object
Returns the value of attribute delegated_by_id.
-
#due_on ⇒ Object
Returns the value of attribute due_on.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_completed ⇒ Object
Returns the value of attribute is_completed.
-
#is_locked ⇒ Object
Returns the value of attribute is_locked.
-
#label_id ⇒ Object
Returns the value of attribute label_id.
-
#milestone_id ⇒ Object
Returns the value of attribute milestone_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#open_subtasks ⇒ Object
Returns the value of attribute open_subtasks.
-
#other_assignee_ids ⇒ Object
Returns the value of attribute other_assignee_ids.
-
#permalink ⇒ Object
Returns the value of attribute permalink.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#state ⇒ Object
Returns the value of attribute state.
-
#subtasks_url ⇒ Object
Returns the value of attribute subtasks_url.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#total_subtasks ⇒ Object
Returns the value of attribute total_subtasks.
-
#user_is_subscribed ⇒ Object
Returns the value of attribute user_is_subscribed.
-
#version ⇒ Object
Returns the value of attribute version.
-
#visibility ⇒ Object
Returns the value of attribute visibility.
Class Method Summary collapse
Instance Attribute Details
#assignee_id ⇒ Object
Returns the value of attribute assignee_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def assignee_id @assignee_id end |
#attachments_count ⇒ Object
Returns the value of attribute attachments_count.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def @attachments_count end |
#attachments_url ⇒ Object
Returns the value of attribute attachments_url.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def @attachments_url end |
#category_id ⇒ Object
Returns the value of attribute category_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def category_id @category_id end |
#comments_count ⇒ Object
Returns the value of attribute comments_count.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def comments_count @comments_count end |
#comments_url ⇒ Object
Returns the value of attribute comments_url.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def comments_url @comments_url end |
#completed_subtasks ⇒ Object
Returns the value of attribute completed_subtasks.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def completed_subtasks @completed_subtasks end |
#delegated_by_id ⇒ Object
Returns the value of attribute delegated_by_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def delegated_by_id @delegated_by_id end |
#due_on ⇒ Object
Returns the value of attribute due_on.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def due_on @due_on end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def id @id end |
#is_completed ⇒ Object
Returns the value of attribute is_completed.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def is_completed @is_completed end |
#is_locked ⇒ Object
Returns the value of attribute is_locked.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def is_locked @is_locked end |
#label_id ⇒ Object
Returns the value of attribute label_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def label_id @label_id end |
#milestone_id ⇒ Object
Returns the value of attribute milestone_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def milestone_id @milestone_id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def name @name end |
#open_subtasks ⇒ Object
Returns the value of attribute open_subtasks.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def open_subtasks @open_subtasks end |
#other_assignee_ids ⇒ Object
Returns the value of attribute other_assignee_ids.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def other_assignee_ids @other_assignee_ids end |
#permalink ⇒ Object
Returns the value of attribute permalink.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def permalink @permalink end |
#priority ⇒ Object
Returns the value of attribute priority.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def priority @priority end |
#project_id ⇒ Object
Returns the value of attribute project_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def project_id @project_id end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def state @state end |
#subtasks_url ⇒ Object
Returns the value of attribute subtasks_url.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def subtasks_url @subtasks_url end |
#task_id ⇒ Object
Returns the value of attribute task_id.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def task_id @task_id end |
#total_subtasks ⇒ Object
Returns the value of attribute total_subtasks.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def total_subtasks @total_subtasks end |
#user_is_subscribed ⇒ Object
Returns the value of attribute user_is_subscribed.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def user_is_subscribed @user_is_subscribed end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def version @version end |
#visibility ⇒ Object
Returns the value of attribute visibility.
3 4 5 |
# File 'lib/active_collab/task.rb', line 3 def visibility @visibility end |
Class Method Details
.from_hash(hash) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/active_collab/task.rb', line 11 def self.from_hash(hash) task = ActiveCollab::Task.new task.id = hash["id"].to_i task.name = hash["name"] task.permalink = hash["permalink"] task.state = hash["state"].to_i task.is_completed = hash["is_completed"].to_i task.comments_url = hash["comments_url"] task.comments_count = hash["comments_count"].to_i task.is_locked = hash["is_locked"].to_i task.subtasks_url = hash["subtasks_url"] task.total_subtasks = hash["total_subtasks"].to_i task.open_subtasks = hash["open_subtasks"].to_i task.completed_subtasks = hash["completed_subtasks"].to_i task. = hash["attachments_url"] task. = hash["attachments_count"].to_i task.assignee_id = hash["assignee_id"].to_i task.delegated_by_id = hash["delegated_by_id"].to_i task.other_assignee_ids = hash["other_assignee_ids"] task.category_id = hash["category_id"].to_i task.label_id = hash["label_id"].to_i task.user_is_subscribed = hash["user_is_subscribed"].to_i task.version = hash["version"] task.priority = hash["priority"].to_i task.due_on = hash["due_on"].to_i task.project_id = hash["project_id"].to_i task.milestone_id = hash["milestone_id"].to_i task.task_id = hash["task_id"].to_i task end |