Module: Exlibris::Primo::Config::Attributes

Included in:
EShelf, Facet, FacetValue, Holding, Link, Record, Review, Reviews, Search, Tag, Tags, WebService::Client::Base, WebService::Request::Base
Defined in:
lib/exlibris/primo/config.rb

Overview

These attributes default to the global config settings if not specified locally.

Instance Method Summary collapse

Instance Method Details

#availability_statusesObject


43
44
45
# File 'lib/exlibris/primo/config.rb', line 43

def availability_statuses
  @availability_statuses ||= (config.availability_statuses) ? config.availability_statuses.dup : {}
end

#base_urlObject


27
28
29
# File 'lib/exlibris/primo/config.rb', line 27

def base_url
  @base_url ||= String.new config.base_url.to_s
end

#configObject


23
24
25
# File 'lib/exlibris/primo/config.rb', line 23

def config
  @config ||= Config
end

#facet_collectionsObject


59
60
61
# File 'lib/exlibris/primo/config.rb', line 59

def facet_collections
  @facet_collections ||= (config.facet_collections) ? config.facet_collections.dup : {}
end

#facet_labelsObject


51
52
53
# File 'lib/exlibris/primo/config.rb', line 51

def facet_labels
  @facet_labels ||= (config.facet_labels) ? config.facet_labels.dup : {}
end

#facet_resource_typesObject


63
64
65
# File 'lib/exlibris/primo/config.rb', line 63

def facet_resource_types
  @facet_resource_types ||= (config.facet_resource_types) ? config.facet_resource_types.dup : {}
end

#facet_top_levelObject


55
56
57
# File 'lib/exlibris/primo/config.rb', line 55

def facet_top_level
  @facet_top_level ||= (config.facet_top_level) ? config.facet_top_level.dup : {}
end

#institutionObject


31
32
33
# File 'lib/exlibris/primo/config.rb', line 31

def institution
  @institution ||= String.new config.institution.to_s
end

#institutionsObject


35
36
37
# File 'lib/exlibris/primo/config.rb', line 35

def institutions
  @institutions ||= (config.institutions) ? config.institutions.dup : {}
end

#librariesObject


39
40
41
# File 'lib/exlibris/primo/config.rb', line 39

def libraries
  @libraries ||= (config.libraries) ? config.libraries.dup : {}
end

#sourcesObject


47
48
49
# File 'lib/exlibris/primo/config.rb', line 47

def sources
  @sources ||= (config.sources) ? config.sources.dup : {}
end