Module: Exlibris::Primo::Config
- Extended by:
- WriteAttributes
- Defined in:
- lib/exlibris/primo/config.rb
Overview
Specify global configuration settings for
Defined Under Namespace
Modules: Attributes
Class Attribute Summary collapse
-
.availability_statuses ⇒ Object
Returns the value of attribute availability_statuses.
-
.base_url ⇒ Object
Returns the value of attribute base_url.
-
.facet_collections ⇒ Object
Returns the value of attribute facet_collections.
-
.facet_labels ⇒ Object
Returns the value of attribute facet_labels.
-
.facet_resource_types ⇒ Object
Returns the value of attribute facet_resource_types.
-
.facet_top_level ⇒ Object
Returns the value of attribute facet_top_level.
-
.institution ⇒ Object
Returns the value of attribute institution.
-
.institutions ⇒ Object
Returns the value of attribute institutions.
-
.libraries ⇒ Object
Returns the value of attribute libraries.
-
.load_time ⇒ Object
Returns the value of attribute load_time.
-
.proxy_url ⇒ Object
Returns the value of attribute proxy_url.
-
.sources ⇒ Object
Returns the value of attribute sources.
Class Method Summary collapse
Methods included from WriteAttributes
Class Attribute Details
.availability_statuses ⇒ Object
Returns the value of attribute availability_statuses.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def availability_statuses @availability_statuses end |
.base_url ⇒ Object
Returns the value of attribute base_url.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def base_url @base_url end |
.facet_collections ⇒ Object
Returns the value of attribute facet_collections.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def facet_collections @facet_collections end |
.facet_labels ⇒ Object
Returns the value of attribute facet_labels.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def facet_labels @facet_labels end |
.facet_resource_types ⇒ Object
Returns the value of attribute facet_resource_types.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def facet_resource_types @facet_resource_types end |
.facet_top_level ⇒ Object
Returns the value of attribute facet_top_level.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def facet_top_level @facet_top_level end |
.institution ⇒ Object
Returns the value of attribute institution.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def institution @institution end |
.institutions ⇒ Object
Returns the value of attribute institutions.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def institutions @institutions end |
.libraries ⇒ Object
Returns the value of attribute libraries.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def libraries @libraries end |
.load_time ⇒ Object
Returns the value of attribute load_time.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def load_time @load_time end |
.proxy_url ⇒ Object
Returns the value of attribute proxy_url.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def proxy_url @proxy_url end |
.sources ⇒ Object
Returns the value of attribute sources.
10 11 12 |
# File 'lib/exlibris/primo/config.rb', line 10 def sources @sources end |
Class Method Details
.load_yaml(file) ⇒ Object
13 14 15 16 |
# File 'lib/exlibris/primo/config.rb', line 13 def load_yaml file write_attributes YAML.load(ERB.new(File.read(file)).result) self.load_time = Time.now end |