Class: Skooby::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/skooby/search.rb

Instance Method Summary collapse

Instance Method Details

#book(query) ⇒ Object



5
6
7
8
9
# File 'lib/skooby/search.rb', line 5

def book(query)
  opts = { body: { data: { Busca: { tipo: "livro", tag: query } } } }
  page = Request.new.post('/livro/lista/', opts)
  parse_result(page)
end