Class: Sirens::VirtualTreeModel::TreeChanged

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

Overview

Announcements

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rootsObject (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_rootsObject (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