Class: ViewModel::ActiveRecord::FunctionalUpdate::Append

Inherits:
Object
  • Object
show all
Defined in:
lib/view_model/active_record/update_data.rb

Constant Summary collapse

NAME =
'append'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contents) ⇒ Append

Returns a new instance of Append.



28
29
30
# File 'lib/view_model/active_record/update_data.rb', line 28

def initialize(contents)
  @contents = contents
end

Instance Attribute Details

#afterObject

Returns the value of attribute after.



25
26
27
# File 'lib/view_model/active_record/update_data.rb', line 25

def after
  @after
end

#beforeObject

Returns the value of attribute before.



25
26
27
# File 'lib/view_model/active_record/update_data.rb', line 25

def before
  @before
end

#contentsObject (readonly)

Returns the value of attribute contents.



26
27
28
# File 'lib/view_model/active_record/update_data.rb', line 26

def contents
  @contents
end