class ARBookFinder::CollectionProcessor

Constants

COLLECTIONS_URL

Public Class Methods

new(collections) click to toggle source
# File lib/ar_book_finder/collection_processor.rb, line 7
def initialize(collections)
  @collections = collections
end

Public Instance Methods

process() click to toggle source
# File lib/ar_book_finder/collection_processor.rb, line 11
def process
  unless current_url.downcase == COLLECTIONS_URL
    visit(COLLECTIONS_URL)
  end
  navigate_collection(@collections)
end

Private Instance Methods

navigate_collection(collection) click to toggle source