lib/tracker_api/resources/story.rb in tracker_api-0.2.3 vs lib/tracker_api/resources/story.rb in tracker_api-0.2.4

- old
+ new

@@ -32,8 +32,16 @@ # @return [String] Comma separated list of labels. def label_list @label_list ||= labels.collect(&:name).join(',') end + + def tasks(params = {}) + if @tasks.any? + @tasks + else + @tasks = Endpoints::Tasks.new(client).get(project_id, id, params) + end + end end end end