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.



37
38
39
# File 'lib/view_model/active_record/update_data.rb', line 37

def initialize(contents)
  @contents = contents
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



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

def contents
  @contents
end