Class: Pageflow::Panorama::Configuration
- Inherits:
-
Object
- Object
- Pageflow::Panorama::Configuration
- Defined in:
- lib/pageflow/panorama/configuration.rb
Constant Summary collapse
- DEFAULT_CONTENT_TYPE_MAPPING =
{ 'css' => 'text/css', 'js' => 'application/javascript', 'html' => 'text/html', 'csv' => 'text/plain' }
Instance Attribute Summary collapse
-
#content_type_mapping ⇒ Object
readonly
Returns the value of attribute content_type_mapping.
-
#packages_base_path ⇒ Object
Returns the value of attribute packages_base_path.
-
#providers ⇒ Object
Returns the value of attribute providers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 |
# File 'lib/pageflow/panorama/configuration.rb', line 15 def initialize @providers = [] @packages_base_path = '' @content_type_mapping = DEFAULT_CONTENT_TYPE_MAPPING end |
Instance Attribute Details
#content_type_mapping ⇒ Object (readonly)
Returns the value of attribute content_type_mapping.
13 14 15 |
# File 'lib/pageflow/panorama/configuration.rb', line 13 def content_type_mapping @content_type_mapping end |
#packages_base_path ⇒ Object
Returns the value of attribute packages_base_path.
11 12 13 |
# File 'lib/pageflow/panorama/configuration.rb', line 11 def packages_base_path @packages_base_path end |
#providers ⇒ Object
Returns the value of attribute providers.
11 12 13 |
# File 'lib/pageflow/panorama/configuration.rb', line 11 def providers @providers end |