Last active
December 18, 2015 03:29
-
-
Save 1syo/5718814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def book_title | |
book_title_lookup(@isbn, @isbn_typ) | |
end | |
private | |
def book_title_lookup(isbn, isbn_type) | |
response = @client.item_lookup do | |
category 'Books' | |
id isbn | |
id_type isbn_type | |
end | |
response.item.title | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment