book_finder_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/book_finder_api/version.rb +1 -1
- data/lib/book_finder_api.rb +9 -0
- metadata +1 -1
data/lib/book_finder_api.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
require "book_finder_api/version"
|
2
2
|
|
3
3
|
class BookFinder
|
4
|
+
# method : flipkart
|
5
|
+
# parameter : ISBN
|
6
|
+
# ISBN number of the Book you want to get. It should be 10 digits.
|
7
|
+
# returns : Hash
|
8
|
+
# It returns the Hash of the Book Details with Field and value basis.
|
9
|
+
# Syntax :
|
10
|
+
# Hash BookFinder.flipkart(ISBN)
|
11
|
+
# Example :
|
12
|
+
# book_details = BookFinder.flipkart(9788120305960)
|
4
13
|
def self.flipkart(isbn)
|
5
14
|
search_url="http://www.flipkart.com/search/a/all?query=#{isbn}"
|
6
15
|
result=Hash.new
|