Class: Sirens::ValueChanged

Inherits:
Object
  • Object
show all
Defined in:
lib/models/value_model.rb

Overview

Events

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(new_value:, old_value:) ⇒ ValueChanged

Returns a new instance of ValueChanged.



49
50
51
52
# File 'lib/models/value_model.rb', line 49

def initialize(new_value:, old_value:)
    @new_value = new_value
    @old_value = old_value
end

Instance Attribute Details

#new_valueObject (readonly)

Returns the value of attribute new_value.



54
55
56
# File 'lib/models/value_model.rb', line 54

def new_value
  @new_value
end

#old_valueObject (readonly)

Returns the value of attribute old_value.



54
55
56
# File 'lib/models/value_model.rb', line 54

def old_value
  @old_value
end