Module: Helpers

Included in:
BptScraper::Login, BptScraper::PullFeed
Defined in:
lib/bpt_scraper/helpers.rb

Overview

Main BPT Module

Instance Method Summary collapse

Instance Method Details

#failed_login_fetchObject



15
16
17
# File 'lib/bpt_scraper/helpers.rb', line 15

def 
  raise 'BptScraper was unable to fetch the Bpt home page'
end

#failed_login_postObject



19
20
21
# File 'lib/bpt_scraper/helpers.rb', line 19

def 
  raise 'BptScraper was unable to create a session'
end

#missing_options_error(name) ⇒ Object



3
4
5
# File 'lib/bpt_scraper/helpers.rb', line 3

def missing_options_error(name)
  raise "BptScraper::#{name} was never given required parameters"
end

#missing_parameters_error(name, parameter) ⇒ Object



7
8
9
# File 'lib/bpt_scraper/helpers.rb', line 7

def missing_parameters_error(name, parameter)
  raise "BptScraper::#{name} was never given the required parameter: #{parameter}"
end

#no_developer_id_errorObject



11
12
13
# File 'lib/bpt_scraper/helpers.rb', line 11

def no_developer_id_error
  raise 'The BPT developer_id is required!'
end