Class: JobsCrawler::Robots::AtooJob
- Inherits:
-
Object
- Object
- JobsCrawler::Robots::AtooJob
- Defined in:
- lib/jobs_crawler/robots/atoo_job.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #crawl ⇒ Object
-
#initialize(url) ⇒ AtooJob
constructor
A new instance of AtooJob.
Constructor Details
#initialize(url) ⇒ AtooJob
5 6 7 8 |
# File 'lib/jobs_crawler/robots/atoo_job.rb', line 5 def initialize(url) @url = url @engine = Mechanize.new end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/jobs_crawler/robots/atoo_job.rb', line 3 def url @url end |
Instance Method Details
#crawl ⇒ Object
10 11 12 13 |
# File 'lib/jobs_crawler/robots/atoo_job.rb', line 10 def crawl set_html to_json end |