class Markify::Scraper::Base

Attributes

marks[R]

Public Class Methods

new(login_name, login_password, sis_login_page) click to toggle source
# File lib/markify/scraper/base.rb, line 28
def initialize(login_name, login_password, sis_login_page)
  @agent = Mechanize.new
  original, library = */(.*) \(.*\)$/.match(@agent.user_agent)
  @agent.user_agent =
      "#{Markify::NAME.capitalize}/#{Markify::VERSION} #{library} (https://github.com/meise/markify)"

  @data                  = {}
  @data[:login_page]     = sis_login_page
  @data[:login_name]     = login_name
  @data[:login_password] = login_password

  @marks = []
end

Public Instance Methods

scrape!() click to toggle source
# File lib/markify/scraper/base.rb, line 42
def scrape!
  scrape
end
test_login() click to toggle source
# File lib/markify/scraper/base.rb, line 46
def test_login
  puts 'Scraper: Nothing to test.'
end