Class: Leggy::CrawlOptions

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/leggy/crawl_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#appObject

Returns the value of attribute app.



9
10
11
# File 'lib/leggy/crawl_options.rb', line 9

def app
  @app
end

#dataObject

Returns the value of attribute data.



9
10
11
# File 'lib/leggy/crawl_options.rb', line 9

def data
  @data
end

#max_depthObject

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_urlsObject

Returns the value of attribute max_urls.



9
10
11
# File 'lib/leggy/crawl_options.rb', line 9

def max_urls
  @max_urls
end

#urllistObject

Returns the value of attribute urllist.



9
10
11
# File 'lib/leggy/crawl_options.rb', line 9

def urllist
  @urllist
end