Class: Sirens::ListChanged
- Inherits:
-
Object
- Object
- Sirens::ListChanged
- Defined in:
- lib/models/list_model.rb
Overview
Announcements
Instance Attribute Summary collapse
-
#new_list ⇒ Object
readonly
Returns the value of attribute new_list.
-
#old_list ⇒ Object
readonly
Returns the value of attribute old_list.
Instance Method Summary collapse
-
#initialize(new_list:, old_list:) ⇒ ListChanged
constructor
A new instance of ListChanged.
Constructor Details
#initialize(new_list:, old_list:) ⇒ ListChanged
Returns a new instance of ListChanged.
136 137 138 139 |
# File 'lib/models/list_model.rb', line 136 def initialize(new_list:, old_list:) @new_list = new_list @old_list = old_list end |
Instance Attribute Details
#new_list ⇒ Object (readonly)
Returns the value of attribute new_list.
141 142 143 |
# File 'lib/models/list_model.rb', line 141 def new_list @new_list end |
#old_list ⇒ Object (readonly)
Returns the value of attribute old_list.
141 142 143 |
# File 'lib/models/list_model.rb', line 141 def old_list @old_list end |