Class: Leggy::CrawlOptions
- Inherits:
-
Object
- Object
- Leggy::CrawlOptions
- Includes:
- Helpers
- Defined in:
- lib/leggy/crawl_options.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#data ⇒ Object
Returns the value of attribute data.
-
#max_depth ⇒ Object
Returns the value of attribute max_depth.
-
#max_urls ⇒ Object
Returns the value of attribute max_urls.
-
#urllist ⇒ Object
Returns the value of attribute urllist.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ CrawlOptions
constructor
A new instance of CrawlOptions.
Constructor Details
#initialize(attrs = {}) ⇒ CrawlOptions
Returns a new instance of CrawlOptions.
5 6 7 |
# File 'lib/leggy/crawl_options.rb', line 5 def initialize(attrs = {}) attrs.slice(*Leggy::CrawlOptions.attr_accessors).each { |k,v| send("#{k}=",v) } end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
9 10 11 |
# File 'lib/leggy/crawl_options.rb', line 9 def app @app end |
#data ⇒ Object
Returns the value of attribute data.
9 10 11 |
# File 'lib/leggy/crawl_options.rb', line 9 def data @data end |
#max_depth ⇒ Object
Returns the value of attribute max_depth.
9 10 11 |
# File 'lib/leggy/crawl_options.rb', line 9 def max_depth @max_depth end |
#max_urls ⇒ Object
Returns the value of attribute max_urls.
9 10 11 |
# File 'lib/leggy/crawl_options.rb', line 9 def max_urls @max_urls end |
#urllist ⇒ Object
Returns the value of attribute urllist.
9 10 11 |
# File 'lib/leggy/crawl_options.rb', line 9 def urllist @urllist end |