Class: Cinii::Client::Book
- Inherits:
-
Base
- Object
- Base
- Cinii::Client::Book
show all
- Defined in:
- lib/cinii/client/book.rb
Instance Method Summary
collapse
Methods inherited from Base
#has_required_params?, #initialize, #send_get
Instance Method Details
#author(author_id) ⇒ Object
42
43
44
|
# File 'lib/cinii/client/book.rb', line 42
def author(author_id)
raise 'Not implemented yet.'
end
|
#book(ncid) ⇒ Object
37
38
39
|
# File 'lib/cinii/client/book.rb', line 37
def book(ncid)
raise 'Not implemented yet.'
end
|
#library(library_id) ⇒ Object
47
48
49
|
# File 'lib/cinii/client/book.rb', line 47
def library(library_id)equal?
raise 'Not implemented yet.'
end
|
#list_authors(**params) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/cinii/client/book.rb', line 13
def list_authors(**params)
raise ArgumentError unless has_required_params?(params, [:name])
response = send_get('/books/opensearch/author', author_params(params))
Cinii::SearchResult::Book.new(response)
end
|
#list_books(**params) ⇒ Object
7
8
9
10
|
# File 'lib/cinii/client/book.rb', line 7
def list_books(**params)
response = send_get('/books/opensearch/search', book_params(params))
Cinii::SearchResult::Book.new(response)
end
|
#list_holders(**params) ⇒ Object
29
30
31
32
33
34
|
# File 'lib/cinii/client/book.rb', line 29
def list_holders(**params)
raise ArgumentError unless has_required_params?(params, [:ncid])
response = send_get('/books/opensearch/holder', holder_params(params))
Cinii::SearchResult::Book.new(response)
end
|
#list_libraries(**params) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/cinii/client/book.rb', line 21
def list_libraries(**params)
raise ArgumentError unless has_required_params?(params, [:name])
response = send_get('/books/opensearch/library', library_params(params))
Cinii::SearchResult::Book.new(response)
end
|