Class: Mural::Widget::CreateArrowParams
- Inherits:
-
Object
- Object
- Mural::Widget::CreateArrowParams
- Includes:
- Codec
- Defined in:
- lib/mural/widget/create_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
38 39 40 41 42 43 44 |
# File 'lib/mural/widget/create_arrow_params.rb', line 38 def encode super.tap do |json| json['points']&.map!(&:encode) json['label'] = json['label']&.encode json['style'] = json['style']&.encode end end |