Class: Determinator::Retrieve::NullRetriever
- Inherits:
-
Object
- Object
- Determinator::Retrieve::NullRetriever
- Defined in:
- lib/determinator/retrieve/null_retriever.rb
Overview
This retriever is a stub which acts as if there are no currently active experiments or features. Use this retriever when you need to run tests in other systems.
Instance Method Summary collapse
-
#initialize(discovery_url:) ⇒ NullRetriever
constructor
A new instance of NullRetriever.
-
#retrieve(_) ⇒ Object
The Control class will assume a nil return from this method means the feature doesn’t exist, so in turn will return ‘false`.
Constructor Details
#initialize(discovery_url:) ⇒ NullRetriever
Returns a new instance of NullRetriever.
7 8 |
# File 'lib/determinator/retrieve/null_retriever.rb', line 7 def initialize(discovery_url:) end |
Instance Method Details
#retrieve(_) ⇒ Object
The Control class will assume a nil return from this method means the feature doesn’t exist, so in turn will return ‘false`.
12 13 14 |
# File 'lib/determinator/retrieve/null_retriever.rb', line 12 def retrieve(_) MissingResponse.new end |