Method: Parse::Core::Actions#op_destroy!

Defined in:
lib/parse/model/core/actions.rb

#op_destroy!(field) ⇒ Boolean

Perform an atomic delete operation on this field.

Parameters:

  • field (String)

    the name of the field in the Parse collection.

Returns:

  • (Boolean)

    whether it was successful

See Also:



337
338
339
# File 'lib/parse/model/core/actions.rb', line 337

def op_destroy!(field)
  operate_field! field, { __op: :Delete }.freeze
end