class ARBookFinder::UserTypeProcessor

Constants

USER_TYPES
USER_TYPE_URL

Public Class Methods

new(user_type) click to toggle source
# File lib/ar_book_finder/user_type_processor.rb, line 14
def initialize(user_type)
  @user_type = USER_TYPES[user_type]
end

Public Instance Methods

process() click to toggle source
# File lib/ar_book_finder/user_type_processor.rb, line 18
def process
  visit(USER_TYPE_URL)
  choose(@user_type)
  click_button('Submit')
end