Class: Qbrick::VideoBrick
- Defined in:
- app/models/qbrick/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.
- #user_can_add_childs? ⇒ Boolean
Methods inherited from Brick
#available_display_styles, #backend_label, #brick_list_type, #cache_key, #has_siblings?, #parents, #partial_digest, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_class, #to_style_id, #translated_available_display_styles, #update_fulltext
Methods included from BrickList
#allowed_brick_types, #brick_types, #collect_fulltext, included, #renders_own_childs?, #to_brick_item_id, #to_brick_list_id, #uploader?, #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
10 11 12 |
# File 'app/models/qbrick/video_brick.rb', line 10 def any_source .presence || href.presence end |
#user_can_add_childs? ⇒ Boolean
18 19 20 |
# File 'app/models/qbrick/video_brick.rb', line 18 def user_can_add_childs? false end |