Class: Robots
- Inherits:
-
Object
- Object
- Robots
- Includes:
- Singleton
- Defined in:
- lib/news_crawler/utils/robots_patch.rb
Instance Attribute Summary collapse
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Robots
constructor
A new instance of Robots.
Constructor Details
#initialize ⇒ Robots
Returns a new instance of Robots.
30 31 32 33 |
# File 'lib/news_crawler/utils/robots_patch.rb', line 30 def initialize @user_agent = 'NewsCrawler' @parsed = {} end |
Instance Attribute Details
#user_agent ⇒ Object
Returns the value of attribute user_agent.
28 29 30 |
# File 'lib/news_crawler/utils/robots_patch.rb', line 28 def user_agent @user_agent end |