Class: TrackerApi::Resources::Epic
- Includes:
- Shared::Base
- Defined in:
- lib/tracker_api/resources/epic.rb
Defined Under Namespace
Classes: UpdateRepresenter
Instance Method Summary collapse
-
#comments(reload: false) ⇒ Object
Provides a list of all the comments on the epic.
-
#create_comment(params) ⇒ Comment
Newly created Comment.
-
#save ⇒ Object
Save changes to an existing Epic.
Methods included from Shared::Base
Instance Method Details
#comments(reload: false) ⇒ Object
Provides a list of all the comments on the epic.
40 41 42 43 44 45 46 |
# File 'lib/tracker_api/resources/epic.rb', line 40 def comments(reload: false) if !reload && @comments.present? @comments else @comments = Endpoints::Comments.new(client).get(project_id, epic_id: id) end end |
#create_comment(params) ⇒ Comment
Returns newly created Comment.
50 51 52 53 54 55 |
# File 'lib/tracker_api/resources/epic.rb', line 50 def create_comment(params) files = params.delete(:files) comment = Endpoints::Comment.new(client).create(project_id, epic_id: id, params: params) comment.(files: files) if files.present? comment end |