Class: Sirens::VirtualTreeModel::TreeChanged
- Inherits:
-
Object
- Object
- Sirens::VirtualTreeModel::TreeChanged
- Defined in:
- lib/models/virtual_tree_model.rb
Overview
Announcements
Instance Attribute Summary collapse
-
#new_roots ⇒ Object
readonly
Returns the value of attribute new_roots.
-
#old_roots ⇒ Object
readonly
Returns the value of attribute old_roots.
Instance Method Summary collapse
-
#initialize(new_roots:, old_roots:) ⇒ TreeChanged
constructor
A new instance of TreeChanged.
Constructor Details
#initialize(new_roots:, old_roots:) ⇒ TreeChanged
Returns a new instance of TreeChanged.
110 111 112 113 |
# File 'lib/models/virtual_tree_model.rb', line 110 def initialize(new_roots:, old_roots:) @new_roots = new_roots @old_roots = old_roots end |
Instance Attribute Details
#new_roots ⇒ Object (readonly)
Returns the value of attribute new_roots.
115 116 117 |
# File 'lib/models/virtual_tree_model.rb', line 115 def new_roots @new_roots end |
#old_roots ⇒ Object (readonly)
Returns the value of attribute old_roots.
115 116 117 |
# File 'lib/models/virtual_tree_model.rb', line 115 def old_roots @old_roots end |