Class: Kuhsaft::VideoBrick
- Defined in:
- app/models/kuhsaft/video_brick.rb
Constant Summary collapse
- YOUTUBE =
'youtube'
- VIMEO =
'vimeo'
- EXTERNAL =
'external'
Class Method Summary collapse
Instance Method Summary collapse
-
#any_source ⇒ Object
a video id, an embed code or a link to a video is required.
Methods inherited from Brick
#backend_label, #brick_list_type, #parents, #set_locale, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_class, #to_style_id
Methods included from BrickList
#collect_fulltext, included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #user_can_add_childs?, #user_can_delete?, #user_can_save?
Class Method Details
Instance Method Details
#any_source ⇒ Object
a video id, an embed code or a link to a video is required
12 13 14 |
# File 'app/models/kuhsaft/video_brick.rb', line 12 def any_source .presence || href.presence end |