Class: TrackerApi::Resources::Story
- Inherits:
-
Object
- Object
- TrackerApi::Resources::Story
- Includes:
- Base
- Defined in:
- lib/tracker_api/resources/story.rb
Instance Method Summary collapse
-
#activity(params = {}) ⇒ Array[Activity]
Provides a list of all the activity performed on the story.
-
#label_list ⇒ String
Comma separated list of labels.
-
#save ⇒ Object
Save changes to an existing Story.
- #tasks(params = {}) ⇒ Array[Task]
Instance Method Details
#activity(params = {}) ⇒ Array[Activity]
Provides a list of all the activity performed on the story.
43 44 45 |
# File 'lib/tracker_api/resources/story.rb', line 43 def activity(params = {}) Endpoints::Activity.new(client).get_story(project_id, id, params) end |
#label_list ⇒ String
Returns Comma separated list of labels.
35 36 37 |
# File 'lib/tracker_api/resources/story.rb', line 35 def label_list @label_list ||= labels.collect(&:name).join(',') end |
#save ⇒ Object
Save changes to an existing Story.
58 59 60 61 62 63 64 |
# File 'lib/tracker_api/resources/story.rb', line 58 def save raise ArgumentError, 'Can not update a story with an unknown project_id.' if project_id.nil? Endpoints::Story.new(client).update(self, just_changes) changes_applied end |