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

Class Method Summary collapse

Methods included from WriteAttributes

initialize, write_attributes

Class Attribute Details

.availability_statusesObject

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_urlObject

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_collectionsObject

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_labelsObject

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_typesObject

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_levelObject

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

.institutionObject

Returns the value of attribute institution.



10
11
12
# File 'lib/exlibris/primo/config.rb', line 10

def institution
  @institution
end

.institutionsObject

Returns the value of attribute institutions.



10
11
12
# File 'lib/exlibris/primo/config.rb', line 10

def institutions
  @institutions
end

.librariesObject

Returns the value of attribute libraries.



10
11
12
# File 'lib/exlibris/primo/config.rb', line 10

def libraries
  @libraries
end

.load_timeObject

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_urlObject

Returns the value of attribute proxy_url.



10
11
12
# File 'lib/exlibris/primo/config.rb', line 10

def proxy_url
  @proxy_url
end

.sourcesObject

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