Class: TrackerApi::Resources::Review

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

Defined Under Namespace

Classes: UpdateRepresenter

Instance Method Summary collapse

Methods included from Shared::Base

included

Instance Method Details

#saveObject

Raises:

  • (ArgumentError)


28
29
30
31
32
# File 'lib/tracker_api/resources/review.rb', line 28

def save
  raise ArgumentError, 'Cannot update a review with an unknown story_id.' if story_id.nil?

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