Class: Openbd::Client

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

Instance Method Summary collapse

Instance Method Details

#coverageObject



19
20
21
22
23
# File 'lib/openbd.rb', line 19

def coverage
  url = "#{END_POINT}/coverage"
  resp = client.get(url)
  body(resp)
end

#get(isbn) ⇒ Object



11
12
13
# File 'lib/openbd.rb', line 11

def get(isbn)
  _get(isbn, :get)
end

#get_big(isbn) ⇒ Object



15
16
17
# File 'lib/openbd.rb', line 15

def get_big(isbn)
  _get(isbn, :post)
end