Class: Mural::Widget::CreateTableParams
- Inherits:
-
Object
- Object
- Mural::Widget::CreateTableParams
- Includes:
- Codec
- Defined in:
- lib/mural/widget/create_table_params.rb
Constant Summary collapse
- Row =
Mural::Widget::Table::Row
- Column =
Mural::Widget::Table::Column
- Style =
Mural::Widget::Table::Style
Instance Method Summary collapse
-
#encode ⇒ Object
rubocop:disable Metrics/CyclomaticComplexity.
Methods included from Codec
Instance Method Details
#encode ⇒ Object
rubocop:disable Metrics/CyclomaticComplexity
38 39 40 41 42 43 44 45 |
# File 'lib/mural/widget/create_table_params.rb', line 38 def encode # rubocop:disable Metrics/CyclomaticComplexity super.tap do |json| json['cells']&.map!(&:encode) json['rows']&.map!(&:encode) json['columns']&.map!(&:encode) json['style'] = json['style']&.encode end.compact end |