Method: Billomat::Models::Base#save
- Defined in:
- lib/billomat/models/base.rb
#save ⇒ TrueClass Also known as: save!
Persists the current object in the API. When record is new it calls create, otherwise it saves the object.
45 46 47 48 49 |
# File 'lib/billomat/models/base.rb', line 45 def save return create if id.nil? update end |