Class: Arstotzka::FetcherBuilder Private
- Inherits:
-
Object
- Object
- Arstotzka::FetcherBuilder
- Includes:
- Base
- Defined in:
- lib/arstotzka/fetcher_builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class responsible for building fetcher that will be used to create instance fetchers
Instance Method Summary collapse
-
#build(instance) ⇒ Object
private
Builds a fetcher responsible for fetchin a value.
-
#initialize(options_hash = {}) ⇒ FetcherBuilder
constructor
private
Creates an instance of Artotzka::FetcherBuilder.
Methods included from Base
Constructor Details
#initialize(options_hash = {}) ⇒ FetcherBuilder #initialize(options) ⇒ FetcherBuilder
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.
Creates an instance of Artotzka::FetcherBuilder
41 42 43 |
# File 'lib/arstotzka/fetcher_builder.rb', line 41 def initialize( = {}) self. = end |
Instance Method Details
#build(instance) ⇒ Object
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.
Builds a fetcher responsible for fetchin a value
158 159 160 |
# File 'lib/arstotzka/fetcher_builder.rb', line 158 def build(instance) Fetcher.new(.merge(instance: instance)) end |