Method: Billomat::Models::Base#save

Defined in:
lib/billomat/models/base.rb

#saveTrueClass Also known as: save!

Persists the current object in the API. When record is new it calls create, otherwise it saves the object.

Returns:

  • (TrueClass)


45
46
47
48
49
# File 'lib/billomat/models/base.rb', line 45

def save
  return create if id.nil?

  update
end