Class: HostedVideo::Configuration
- Inherits:
-
Object
- Object
- HostedVideo::Configuration
- Defined in:
- lib/hosted_video/configuration.rb
Instance Attribute Summary collapse
-
#additional_providers ⇒ Object
Returns the value of attribute additional_providers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #providers ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/hosted_video/configuration.rb', line 5 def initialize @providers = Providers.constants .reject { |c| c == :Base } .map { |c| Providers.const_get(c) } .select { |c| Class === c } @additional_providers = [] end |
Instance Attribute Details
#additional_providers ⇒ Object
Returns the value of attribute additional_providers.
3 4 5 |
# File 'lib/hosted_video/configuration.rb', line 3 def additional_providers @additional_providers end |
Instance Method Details
#providers ⇒ Object
13 14 15 |
# File 'lib/hosted_video/configuration.rb', line 13 def providers @providers + @additional_providers end |