Class: ArSync::DataField
Instance Attribute Summary
Attributes inherited from Field
#name
Instance Method Summary
collapse
Methods inherited from Field
#initialize, #order_param
Constructor Details
This class inherits a constructor from ArSync::Field
Instance Method Details
#action_convert(_action) ⇒ Object
31
32
33
|
# File 'lib/ar_sync/field.rb', line 31
def action_convert(_action)
:update
end
|
#data(parent, _child, to_user:) ⇒ Object
23
24
25
|
# File 'lib/ar_sync/field.rb', line 23
def data(parent, _child, to_user:, **)
ArSync.serialize parent, name, user: to_user
end
|
#path(_child) ⇒ Object
27
28
29
|
# File 'lib/ar_sync/field.rb', line 27
def path(_child)
[]
end
|
#skip_propagation?(_parent, _child, path) ⇒ Boolean
35
36
37
|
# File 'lib/ar_sync/field.rb', line 35
def skip_propagation?(_parent, _child, path)
!path.nil?
end
|
#type ⇒ Object
19
20
21
|
# File 'lib/ar_sync/field.rb', line 19
def type
:data
end
|