Class: ViewModel::ActiveRecord::FunctionalUpdate::Update

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

Constant Summary collapse

NAME =
'update'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contents) ⇒ Update

Returns a new instance of Update.



35
36
37
# File 'lib/view_model/active_record/update_data.rb', line 35

def initialize(contents)
  @contents = contents
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



34
35
36
# File 'lib/view_model/active_record/update_data.rb', line 34

def contents
  @contents
end