Module: NLBSG
- Defined in:
- lib/nlbsg.rb,
lib/nlbsg/client.rb,
lib/nlbsg/request.rb,
lib/nlbsg/version.rb,
lib/nlbsg/response.rb,
lib/nlbsg/constants.rb,
lib/nlbsg/request/search.rb,
lib/nlbsg/response/search.rb,
lib/nlbsg/request/get_title_details.rb,
lib/nlbsg/response/get_title_details.rb,
lib/nlbsg/request/get_availability_info.rb,
lib/nlbsg/response/get_availability_info.rb
Defined Under Namespace
Classes: Client, GetAvailabilityInfoRequest, GetAvailabilityInfoResponse, GetTitleDetailsRequest, GetTitleDetailsResponse, RequestBase, ResponseBase, SearchRequest, SearchResponse
Constant Summary
collapse
- VERSION =
"0.1.0"
- WSDL =
{
staging: "https://openweb-stg.nlb.gov.sg/OWS/CatalogueService.svc?singleWsdl",
production: "https://openweb.nlb.gov.sg/OWS/CatalogueService.svc?singleWsdl"
}
- LANGUAGE =
{
}
- MEDIA_CODE =
{
books: "BK",
computer_file: "CF",
maps: "MP",
music: "MU",
mixed_materials: "MX",
serials: "SE",
visual_materials: "VM"
}
- BRANCH =
{
"Tampines Regional Library": "TRL",
"Woodlands Regional Library": "WRL",
"Clementi Public Library": "CMPL",
"Lee Kong Chian Reference Library": "LKCRL",
"Ang Mo Kio Public Library": "AMKPL",
"Bukit Batok Public Library": "BBPL",
"Bukit Panjang Public Library": "BPPL",
"Bukit Merah Public Library": "BMPL",
"Central Public Library": "CLL",
"Cheng San Public Library": "CSPL",
"Choa Chu Kang Public Library": "CCKPL",
"Geylang East Public Library": "GEPL",
"Jurong Regional Library": "JRL",
"Jurong West Public Library": "JWPL",
"Queenstown Public Library": "QUPL",
"Toa Payoh Public Library": "TPPL",
"Yishun Public Library": "YIPL",
"Library@Orchard": "OCPL",
"Library@Chinatown": "CNPL",
"Sembawang Public Library": "SBPL",
"Library Supply Centre": "LSC",
"Serangoon Public Library": "SRPL",
"NL Heritage": "LOLC",
"Marine Parade Public Library": "MPPL",
"Bedok Public Library": "BEPL",
"Sengkang Public Library": "SKPL",
"Library@Esplanade": "EPPL",
"Mobile Bus": "MOLLEY",
"Pasir Ris Public Library": "PRPL",
"Bishan Public Library": "BIPL",
"Library Supply Centre for AV": "LSCAV",
"Lee Kong Chian Reference Library Level 7": "07LKCRL",
"Lee Kong Chian Reference Library Level 8": "08LKCRL",
"Lee Kong Chian Reference Library Level 9": "09LKCRL",
"Lee Kong Chian Reference Library Level 11": "11LKCRL",
"HarbourFront Public Library": "HBPL"
}
- STATUS_CODE =
{
}
Class Method Summary
collapse
Class Method Details
.client(key:, env: :staging) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/nlbsg.rb', line 11
def self.client(key:, env: :staging)
@key = key
@env = env
return Client.new
end
|
.env ⇒ Object
22
23
24
|
# File 'lib/nlbsg.rb', line 22
def self.env
@env
end
|
.key ⇒ Object
18
19
20
|
# File 'lib/nlbsg.rb', line 18
def self.key
@key
end
|