Class: MangaPlus::Api::AllTitlesView

Inherits:
Object
  • Object
show all
Defined in:
lib/manga_plus/api.rb

Constant Summary collapse

URL =
API + '/title_list/all'

Instance Method Summary collapse

Instance Method Details

#callObject



40
41
42
43
44
# File 'lib/manga_plus/api.rb', line 40

def call
  protobuf = HTTParty.get(URL).body
  response = MangaPlus::Response.decode(protobuf).to_h
  response.dig(:success, :allTitlesView)
end