Module: BerkeleyLibrary::Holdings::HathiTrust::Config

Extended by:
Config
Includes:
Util::URIs
Included in:
Config
Defined in:
lib/berkeley_library/holdings/hathi_trust/config.rb

Constant Summary collapse

ENV_HATHITRUST_BASE_URL =
'LIT_HATHITRUST_BASE_URL'.freeze
DEFAULT_HATHITRUST_BASE_URL =

The default HathiTrust base URL, if ENV_HATHITRUST_BASE_URL is not set.

'https://catalog.hathitrust.org/api/'.freeze

Instance Method Summary collapse

Instance Method Details

#base_uriObject



18
19
20
# File 'lib/berkeley_library/holdings/hathi_trust/config.rb', line 18

def base_uri
  @base_uri ||= default_hathitrust_base_uri
end

#base_uri=(value) ⇒ Object



22
23
24
# File 'lib/berkeley_library/holdings/hathi_trust/config.rb', line 22

def base_uri=(value)
  @base_uri = uri_or_nil(value)
end