module PrintReleaf::Actions::Update
Public Instance Methods
save()
click to toggle source
# File lib/printreleaf/actions.rb, line 85 def save if self.id.nil? response = PrintReleaf.post(self.uri, self.to_hash) else response = PrintReleaf.patch(self.uri, changes) end reset(response) return true end