Class: Promethee::StructureUpgrader::Components::Video

Inherits:
Base
  • Object
show all
Defined in:
app/services/promethee/structure_upgrader/components/video.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/video.rb', line 15

def upgraded_attributes
  {
    'url' => {
      'searchable' => false,
      'translatable' => true,
      'type' => 'string',
      'value' => string_attribute('url')
    },
    'autoplay' => {
      'searchable' => false,
      'translatable' => false,
      'type' => 'boolean',
      'value' => attribute('autoplay')
    }
  }
end