Class: ViewModel::ActiveRecord::FunctionalUpdate::Append
- Inherits:
-
Object
- Object
- ViewModel::ActiveRecord::FunctionalUpdate::Append
- Defined in:
- lib/view_model/active_record/update_data.rb
Constant Summary collapse
- NAME =
'append'
Instance Attribute Summary collapse
-
#after ⇒ Object
Returns the value of attribute after.
-
#before ⇒ Object
Returns the value of attribute before.
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
Instance Method Summary collapse
-
#initialize(contents) ⇒ Append
constructor
A new instance of Append.
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
#after ⇒ Object
Returns the value of attribute after.
25 26 27 |
# File 'lib/view_model/active_record/update_data.rb', line 25 def after @after end |
#before ⇒ Object
Returns the value of attribute before.
25 26 27 |
# File 'lib/view_model/active_record/update_data.rb', line 25 def before @before end |
#contents ⇒ Object (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 |