Class: NLBSG::Client
- Inherits:
-
Object
- Object
- NLBSG::Client
- Defined in:
- lib/nlbsg/client.rb
Constant Summary collapse
- DEFAULT_CONFIG =
{ convert_request_keys_to: :camelcase, open_timeout: 300, read_timeout: 300 }
Instance Method Summary collapse
- #get_availability_info(options) ⇒ Object (also: #availability)
- #get_title_details(options) ⇒ Object (also: #title)
- #operations ⇒ Object
- #search(options) ⇒ Object
Instance Method Details
#get_availability_info(options) ⇒ Object Also known as: availability
23 24 25 26 27 |
# File 'lib/nlbsg/client.rb', line 23 def get_availability_info() request = GetAvailabilityInfoRequest.new().build response = client.call(:get_availability_info, message: request) GetAvailabilityInfoResponse.new(response) end |
#get_title_details(options) ⇒ Object Also known as: title
17 18 19 20 21 |
# File 'lib/nlbsg/client.rb', line 17 def get_title_details() request = GetTitleDetailsRequest.new().build response = client.call(:get_title_details, message: request) GetTitleDetailsResponse.new(response) end |
#operations ⇒ Object
29 30 31 |
# File 'lib/nlbsg/client.rb', line 29 def operations client.operations end |
#search(options) ⇒ Object
11 12 13 14 15 |
# File 'lib/nlbsg/client.rb', line 11 def search() request = SearchRequest.new().build response = client.call(:search, message: request) SearchResponse.new(response) end |