Class: Pageflow::Panorama::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_mappingObject (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_pathObject

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

#providersObject

Returns the value of attribute providers.



11
12
13
# File 'lib/pageflow/panorama/configuration.rb', line 11

def providers
  @providers
end