Class: Scrapetor::Robots::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/scrapetor/robots.rb

Overview

type: :allow or :disallow

Instance Attribute Summary collapse

Instance Attribute Details

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



17
18
19
# File 'lib/scrapetor/robots.rb', line 17

def pattern
  @pattern
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



17
18
19
# File 'lib/scrapetor/robots.rb', line 17

def type
  @type
end