Class: Lexile::Api::Books
Instance Method Summary
collapse
Methods inherited from Resource
api_model, #initialize
Instance Method Details
#find(query_params) ⇒ Object
#find_by_isbn13(isbn13) ⇒ Object
17
18
19
|
# File 'lib/lexile/api/books.rb', line 17
def find_by_isbn13 isbn13
self.find( {"ISBN13" => isbn13 })
end
|
#find_by_title(title) ⇒ Object
21
22
23
|
# File 'lib/lexile/api/books.rb', line 21
def find_by_title title
self.find( {"title__contains" => title } )
end
|
#show(id) ⇒ Object
6
7
8
9
|
# File 'lib/lexile/api/books.rb', line 6
def show id
response_json = @client.get( "#{Lexile.api_version}/#{ api_model.api_path }/#{id}" )
api_model.parse( response_json )
end
|