Class: ViewModel::ActiveRecord::AbstractCollectionUpdate::Replace

Inherits:
Object
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject (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