Module: LoyalSpider::FetchAble::ClassMethods
- Defined in:
- lib/loyal_spider/ables/fetch_able.rb
Instance Method Summary collapse
-
#config_loyal_spider_default_fetch_options(options = {}) ⇒ Object
配置蜘蛛的抓取配置.
- #default_fetch_options ⇒ Object
- #fetch(options = {}, &block) ⇒ Object
Instance Method Details
#config_loyal_spider_default_fetch_options(options = {}) ⇒ Object
配置蜘蛛的抓取配置
16 17 18 |
# File 'lib/loyal_spider/ables/fetch_able.rb', line 16 def ={} @default_fetch_options ||= end |
#default_fetch_options ⇒ Object
20 21 22 |
# File 'lib/loyal_spider/ables/fetch_able.rb', line 20 def @default_fetch_options ||= {} end |
#fetch(options = {}, &block) ⇒ Object
24 25 26 |
# File 'lib/loyal_spider/ables/fetch_able.rb', line 24 def fetch ={}, &block self.new.fetch , &block end |