Class: TrackerApi::Resources::Epic

Inherits:
Object
  • Object
show all
Includes:
Shared::Base
Defined in:
lib/tracker_api/resources/epic.rb

Defined Under Namespace

Classes: UpdateRepresenter

Instance Method Summary collapse

Methods included from Shared::Base

included

Instance Method Details

#saveObject

Save changes to an existing Epic.

Raises:

  • (ArgumentError)


32
33
34
35
36
# File 'lib/tracker_api/resources/epic.rb', line 32

def save
  raise ArgumentError, 'Can not update an epic with an unknown project_id.' if project_id.nil?

  Endpoints::Epic.new(client).update(self, UpdateRepresenter.new(self))
end