Class: ViewModel::ActiveRecord::AbstractCollectionUpdate::Replace
- Inherits:
-
Object
- Object
- ViewModel::ActiveRecord::AbstractCollectionUpdate::Replace
- Defined in:
- lib/view_model/active_record/update_data.rb
Overview
Wraps a complete collection of new data: either UpdateDatas for non-root associations or reference strings for root.
Direct Known Subclasses
OwnedCollectionUpdate::Replace, ReferencedCollectionUpdate::Replace
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
Instance Method Summary collapse
-
#initialize(contents) ⇒ Replace
constructor
A new instance of Replace.
Constructor Details
#initialize(contents) ⇒ Replace
Returns a new instance of Replace.
62 63 64 |
# File 'lib/view_model/active_record/update_data.rb', line 62 def initialize(contents) @contents = contents end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
60 61 62 |
# File 'lib/view_model/active_record/update_data.rb', line 60 def contents @contents end |