Class: Jikanrb::Resources::MangaResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Jikanrb::Resources::MangaResource
- Defined in:
- lib/jikanrb/resources/manga_resource.rb
Overview
Resource class for accessing Manga sub-resources from the Jikan API. Provides fluent API access to manga details, characters, news, forum topics, pictures, statistics, and more.
Instance Attribute Summary
Attributes inherited from BaseResource
Instance Method Summary collapse
-
#characters ⇒ Hash
Returns characters for this manga.
-
#external ⇒ Hash
Returns external links for this manga.
-
#forum ⇒ Hash
Returns forum topics related to this manga.
-
#info(full: false) ⇒ Hash
Returns manga details.
-
#news ⇒ Hash
Returns news articles related to this manga.
-
#pictures ⇒ Hash
Returns pictures of this manga.
-
#recommendations ⇒ Hash
Returns user recommendations for this manga.
-
#relations ⇒ Hash
Returns related anime/manga entries.
-
#statistics ⇒ Hash
Returns statistics for this manga.
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Jikanrb::Resources::BaseResource
Instance Method Details
#characters ⇒ Hash
Returns characters for this manga
43 44 45 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 43 def characters get("manga/#{@id}/characters") end |
#external ⇒ Hash
Returns external links for this manga
120 121 122 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 120 def external get("manga/#{@id}/external") end |
#forum ⇒ Hash
Returns forum topics related to this manga
65 66 67 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 65 def forum get("manga/#{@id}/forum") end |
#info(full: false) ⇒ Hash
Returns manga details
31 32 33 34 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 31 def info(full: false) path = full ? "manga/#{@id}/full" : "manga/#{@id}" get(path) end |
#news ⇒ Hash
Returns news articles related to this manga
54 55 56 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 54 def news get("manga/#{@id}/news") end |
#pictures ⇒ Hash
Returns pictures of this manga
76 77 78 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 76 def pictures get("manga/#{@id}/pictures") end |
#recommendations ⇒ Hash
Returns user recommendations for this manga
98 99 100 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 98 def recommendations get("manga/#{@id}/recommendations") end |
#relations ⇒ Hash
Returns related anime/manga entries
109 110 111 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 109 def relations get("manga/#{@id}/relations") end |
#statistics ⇒ Hash
Returns statistics for this manga
87 88 89 |
# File 'lib/jikanrb/resources/manga_resource.rb', line 87 def statistics get("manga/#{@id}/statistics") end |