Class: Lotrb::Book
- Inherits:
-
BaseResource
- Object
- BaseResource
- Lotrb::Book
- Defined in:
- lib/lotrb/resources/book.rb
Constant Summary collapse
- RESOURCE_NAME =
"book"
Instance Method Summary collapse
Methods inherited from BaseResource
from_result_hash, internal_get, list, retrieve
Instance Method Details
#list_chapters(params = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/lotrb/resources/book.rb', line 5 def list_chapters(params = {}) child_class = Chapter path = "#{RESOURCE_NAME}/#{_id}/#{child_class::RESOURCE_NAME}" self.class.internal_get(path: path, params: params, result_class: child_class) end |