Class: FacebookScraper::Scrape
- Inherits:
-
Object
- Object
- FacebookScraper::Scrape
- Defined in:
- lib/facebook_scraper/scrape.rb
Constant Summary collapse
- GRAPH_URL =
'https://graph.facebook.com'
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(url) ⇒ Scrape
constructor
A new instance of Scrape.
- #run ⇒ Object
Constructor Details
#initialize(url) ⇒ Scrape
Returns a new instance of Scrape.
11 12 13 |
# File 'lib/facebook_scraper/scrape.rb', line 11 def initialize(url) @url = url end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/facebook_scraper/scrape.rb', line 9 def status @status end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/facebook_scraper/scrape.rb', line 8 def url @url end |
Class Method Details
.create(url) ⇒ Object
15 16 17 |
# File 'lib/facebook_scraper/scrape.rb', line 15 def self.create(url) new(url).tap { |scraper| scraper.run } end |