Module: Helpers
- Included in:
- BptScraper::Login, BptScraper::PullFeed
- Defined in:
- lib/bpt_scraper/helpers.rb
Overview
Main BPT Module
Instance Method Summary collapse
- #failed_login_fetch ⇒ Object
- #failed_login_post ⇒ Object
- #missing_options_error(name) ⇒ Object
- #missing_parameters_error(name, parameter) ⇒ Object
- #no_developer_id_error ⇒ Object
Instance Method Details
#failed_login_fetch ⇒ Object
15 16 17 |
# File 'lib/bpt_scraper/helpers.rb', line 15 def failed_login_fetch raise 'BptScraper was unable to fetch the Bpt home page' end |
#failed_login_post ⇒ Object
19 20 21 |
# File 'lib/bpt_scraper/helpers.rb', line 19 def failed_login_post 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 (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_error ⇒ Object
11 12 13 |
# File 'lib/bpt_scraper/helpers.rb', line 11 def no_developer_id_error raise 'The BPT developer_id is required!' end |