Module: PrintReleaf::Actions::Update
- Defined in:
- lib/printreleaf/actions.rb
Instance Method Summary collapse
Instance Method Details
#save ⇒ Object
85 86 87 88 89 90 91 92 93 |
# 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 |