Class: Promethee::StructureUpgrader::Components::Row

Inherits:
Base
  • Object
show all
Defined in:
app/services/promethee/structure_upgrader/components/row.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #upgrade, #upgraded_data

Constructor Details

This class inherits a constructor from Promethee::StructureUpgrader::Components::Base

Instance Method Details

#upgraded_attributesObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/services/promethee/structure_upgrader/components/row.rb', line 15

def upgraded_attributes
  {
    'bgcolor' => {
      'searchable' => false,
      'translatable' => false,
      'type' => 'color',
      'value' => attribute('bgcolor'),
    },
    'backgrounds' => {
      'searchable' => false,
      'translatable' => false,
      'type' => 'array',
      'value' => upgraded_backgrounds(attribute('backgrounds'))
    }
  }
end