class MangaPlus::Api::WebHomeView
Constants
- OPTIONS
- URL
Public Class Methods
new(language: 'eng')
click to toggle source
# File lib/manga_plus/api.rb, line 83 def initialize(language: 'eng') @options = { language: language } end
Public Instance Methods
call()
click to toggle source
# File lib/manga_plus/api.rb, line 87 def call protobuf = HTTParty.get(URL % @options).body response = MangaPlus::Response.decode(protobuf).to_h response.dig(:success, :webHomeView) end