Class: Mural::RoomFolder

Inherits:
Object
  • Object
show all
Includes:
Codec
Defined in:
lib/mural/room_folder.rb

Class Method Summary collapse

Methods included from Codec

#encode, included

Class Method Details

.decode(json) ⇒ Object



14
15
16
17
18
19
# File 'lib/mural/room_folder.rb', line 14

def self.decode(json)
  super.tap do |folder|
    # Recursively map out the children
    folder.children&.map! { |child| decode(child) }
  end
end