Method: Cosmos::MetadataModel#update

Defined in:
lib/cosmos/models/metadata_model.rb

#update(start: nil, color: nil, metadata: nil, constraints: nil) ⇒ Object

Update the model. All arguments are optional, only those set will be updated.



116
117
118
119
120
121
122
123
# File 'lib/cosmos/models/metadata_model.rb', line 116

def update(start: nil, color: nil, metadata: nil, constraints: nil)
  orig_start = @start
  @start = start if start
  @color = color if color
   =  if 
  @constraints = constraints if constraints
  create(update: orig_start)
end