Class: Pageflow::EmbeddedVideo::Configuration
- Inherits:
-
Object
- Object
- Pageflow::EmbeddedVideo::Configuration
- Defined in:
- lib/pageflow/embedded_video/configuration.rb
Instance Attribute Summary collapse
-
#supported_hosts ⇒ Array<String>
White list of URL prefixes (including protocol) of embedded videos.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 |
# File 'lib/pageflow/embedded_video/configuration.rb', line 9 def initialize @supported_hosts = %w[ https://youtu.be https://www.youtube.com http://www.youtube.com http://vimeo.com https://vimeo.com ] end |
Instance Attribute Details
#supported_hosts ⇒ Array<String>
White list of URL prefixes (including protocol) of embedded videos.
7 8 9 |
# File 'lib/pageflow/embedded_video/configuration.rb', line 7 def supported_hosts @supported_hosts end |