Sha256: c676461184f519ec82276c807ff0fadba3ac6f72d5e55d74ab21ec167c1d8276
Contents?: true
Size: 748 Bytes
Versions: 7
Compression:
Stored size: 748 Bytes
Contents
module BillForward class MutableEntity < InsertableEntity def initialize(*args) raise AbstractInstantiateError.new('This abstract class cannot be instantiated!') if self.class == MutableEntity super end # Asks API to update existing instance of this entity, # based on current model. # # @return [self] The updated Entity def save() self.class.request_first('put', '', self, nil, _client) end # Asks API to retire existing instance of this entity. # @note Many BillForward entities do not support RETIRE # @note As-yet untested # # @return [self] The retired Entity def delete() self.class.request_first('delete', '', nil, _client) end alias_method :retire, :delete end end
Version data entries
7 entries across 7 versions & 1 rubygems