Class: Mural::Widget::Arrow
- Inherits:
-
Object
- Object
- Mural::Widget::Arrow
show all
- Includes:
- Codec
- Defined in:
- lib/mural/widget/arrow.rb
Defined Under Namespace
Classes: Label, Point, Style
Class Method Summary
collapse
Methods included from Codec
#encode, included
Class Method Details
.decode(json) ⇒ Object
41
42
43
44
45
46
47
48
49
|
# File 'lib/mural/widget/arrow.rb', line 41
def self.decode(json)
super.tap do |arrow|
arrow.points = arrow.points&.map { |point| Point.decode(point) }
arrow.style = Style.decode(arrow.style)
arrow.label = Mural::Widget::Arrow::Label.decode(arrow.label)
end
end
|