class MangaPlus::Api::MangaViewer
Constants
- OPTIONS
- URL
Public Class Methods
new(chapter_id, split: 'yes', img_quality: 'super_high')
click to toggle source
# File lib/manga_plus/api.rb, line 64 def initialize(chapter_id, split: 'yes', img_quality: 'super_high') @options = { chapter_id: chapter_id, split: split, img_quality: img_quality } end
Public Instance Methods
call()
click to toggle source
# File lib/manga_plus/api.rb, line 72 def call protobuf = HTTParty.get(URL % @options).body response = MangaPlus::Response.decode(protobuf).to_h response.dig(:success, :mangaViewer) end