class MangaPlus::Api::TitleDetailView

Constants

URL

Public Class Methods

new(title_id) click to toggle source
# File lib/manga_plus/api.rb, line 49
def initialize(title_id)
  @title_id = title_id
end

Public Instance Methods

call() click to toggle source
# File lib/manga_plus/api.rb, line 53
def call
  protobuf = HTTParty.get(URL % @title_id).body
  response = MangaPlus::Response.decode(protobuf).to_h
  response.dig(:success, :titleDetailView)
end