Module: Arstotzka::Base Private

Included in:
Crawler, Fetcher, Fetcher::Cache, HashReader, KeyChanger, KeyReader, PostProcessor, Reader, Wrapper
Defined in:
lib/arstotzka/base.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Common code to be used by classes

Instance Method Summary collapse

Instance Method Details

#options=(options_hash = {}) ⇒ Arstotzka::Options (private) #options=(options) ⇒ Arstotzka::Options (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the @options object

Overloads:

Returns:



19
20
21
22
23
24
25
# File 'lib/arstotzka/base.rb', line 19

def options=(options)
  @options = if options.is_a?(Hash)
               Arstotzka.config.options(options)
             else
               options
             end
end