Class: Pageflow::EmbeddedVideo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pageflow/embedded_video/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hostsArray<String>

White list of URL prefixes (including protocol) of embedded videos.

Returns:

  • (Array<String>)


7
8
9
# File 'lib/pageflow/embedded_video/configuration.rb', line 7

def supported_hosts
  @supported_hosts
end