Class: Arstotzka::FetcherBuilder Private
- Inherits:
-
Object
- Object
- Arstotzka::FetcherBuilder
- 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 = {}) ⇒ FetcherBuilder
constructor
private
Creates an instance of Artotzka::FetcherBuilder.
Constructor Details
#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
35 36 37 |
# File 'lib/arstotzka/fetcher_builder.rb', line 35 def initialize( = {}) @options = 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
152 153 154 155 156 157 158 |
# File 'lib/arstotzka/fetcher_builder.rb', line 152 def build(instance) = Arstotzka.config.( .merge(instance: instance) ) Fetcher.new() end |