Class: Mural::Widget::UpdateArrowParams
- Inherits:
-
Object
- Object
- Mural::Widget::UpdateArrowParams
- Includes:
- Codec
- Defined in:
- lib/mural/widget/update_arrow_params.rb
Constant Summary collapse
- Style =
Mural::Widget::Arrow::Style
- Label =
Mural::Widget::Arrow::Label
- Point =
Mural::Widget::Arrow::Point
Instance Method Summary collapse
Methods included from Codec
Instance Method Details
#encode ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/mural/widget/update_arrow_params.rb', line 19 def encode super.tap do |json| json['points']&.map!(&:encode) json['label'] = json['label']&.encode json['style'] = json['style']&.encode end end |