Class: FbErrorMachine::Scraper
- Inherits:
-
Object
- Object
- FbErrorMachine::Scraper
- Defined in:
- lib/fb_error_machine.rb
Instance Method Summary collapse
- #scrape(version = "2.7") ⇒ Object
- #scrape_graph_api_errors(version = "2.7") ⇒ Object
- #scrape_marketing_api_errors(version = "2.7") ⇒ Object
Instance Method Details
#scrape(version = "2.7") ⇒ Object
25 26 27 28 |
# File 'lib/fb_error_machine.rb', line 25 def scrape(version="2.7") scrape_graph_api_errors(version) scrape_marketing_api_errors(version="2.7") end |
#scrape_graph_api_errors(version = "2.7") ⇒ Object
13 14 15 16 17 |
# File 'lib/fb_error_machine.rb', line 13 def scrape_graph_api_errors(version="2.7") puts "Begin Graph API Error list from 'https://developers.facebook.com/docs/graph-api/using-graph-api/v#{version}'" GraphErrorScraper.scrape_graph_api_errors puts "Stored Graph API Errors" end |
#scrape_marketing_api_errors(version = "2.7") ⇒ Object
19 20 21 22 23 |
# File 'lib/fb_error_machine.rb', line 19 def scrape_marketing_api_errors(version="2.7") puts "Begin scraping Marketing API Error list from 'https://developers.facebook.com/docs/marketing-api/error-reference/v#{version}'" MarketingApiErrorScraper.scrape_marketing_api_errors puts "Stored Marketing API Errors" end |