Module: ARBookFinder

Extended by:
Configuration
Defined in:
lib/ar_book_finder.rb,
lib/ar_book_finder/book.rb,
lib/ar_book_finder/scraper.rb,
lib/ar_book_finder/version.rb,
lib/ar_book_finder/constants.rb,
lib/ar_book_finder/publisher.rb,
lib/ar_book_finder/configuration.rb,
lib/ar_book_finder/book_detail_parser.rb,
lib/ar_book_finder/user_type_processor.rb,
lib/ar_book_finder/collection_processor.rb,
lib/ar_book_finder/pagination_processor.rb,
lib/ar_book_finder/book_detail_processor.rb,
lib/ar_book_finder/search_results_parser.rb,
lib/ar_book_finder/quick_search_processor.rb

Defined Under Namespace

Modules: Configuration Classes: Book, BookDetailParser, BookDetailProcessor, CollectionProcessor, PaginationProcessor, Publisher, QuickSearchProcessor, Scraper, SearchResultsParser, UserTypeProcessor

Constant Summary collapse

VERSION =
'1.1.1'
BASE_URL =
'http://www.arbookfind.com'

Constants included from Configuration

Configuration::DEFAULT_USER_TYPE, Configuration::VALID_OPTION_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.advanced_search(user_type, search_type, params) ⇒ Object



33
34
35
# File 'lib/ar_book_finder.rb', line 33

def self.advanced_search(user_type, search_type, params)
  raise 'Not yet implemented'
end

.collection(collection, page = 1) ⇒ Object



37
38
39
# File 'lib/ar_book_finder.rb', line 37

def self.collection(collection, page = 1)
  scraper(options[:user_type]).collection(collection, page)
end

.scraper(user_type) ⇒ Object



25
26
27
# File 'lib/ar_book_finder.rb', line 25

def self.scraper(user_type)
  Scraper.new(user_type)
end

.search(query, page = 1) ⇒ Object



29
30
31
# File 'lib/ar_book_finder.rb', line 29

def self.search(query, page = 1)
  scraper(options[:user_type]).search(query, page)
end