Module: Exlibris::Aleph::Config

Extended by:
WriteAttributes
Defined in:
lib/exlibris/aleph/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

.admsObject

Returns the value of attribute adms.



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

def adms
  @adms
end

.base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

.irrelevant_sub_librariesObject

Returns the value of attribute irrelevant_sub_libraries.



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

def irrelevant_sub_libraries
  @irrelevant_sub_libraries
end

.load_timeObject

Returns the value of attribute load_time.



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

def load_time
  @load_time
end

.loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

.refresh_timeObject

Returns the value of attribute refresh_time.



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

def refresh_time
  @refresh_time
end

.rest_urlObject

Returns the value of attribute rest_url.



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

def rest_url
  @rest_url
end

.tab_pathObject

Returns the value of attribute tab_path.



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

def tab_path
  @tab_path
end

.yml_pathObject

Returns the value of attribute yml_path.



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

def yml_path
  @yml_path
end

Class Method Details

.load_yaml(file) ⇒ Object



13
14
15
16
# File 'lib/exlibris/aleph/config.rb', line 13

def load_yaml file
  write_attributes YAML.load_file(file)
  self.load_time = Time.now
end