Class: Riddler::ContextBuilder
- Inherits:
-
Object
- Object
- Riddler::ContextBuilder
- Defined in:
- lib/riddler/context_builder.rb
Direct Known Subclasses
Riddler::ContextBuilders::FaradayBuilder, Riddler::ContextBuilders::UserAgent
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#data_available? ⇒ Boolean
Does the current context have the data available for this builder to function.
-
#extract_ids ⇒ Object
Extract IDs from the context (params, headers, JWTs, etc) and store them in context.ids.
-
#initialize(context) ⇒ ContextBuilder
constructor
A new instance of ContextBuilder.
-
#process ⇒ Object
Inspect context for identifiers or data.
Constructor Details
#initialize(context) ⇒ ContextBuilder
Returns a new instance of ContextBuilder.
5 6 7 |
# File 'lib/riddler/context_builder.rb', line 5 def initialize context @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/riddler/context_builder.rb', line 3 def context @context end |
Instance Method Details
#data_available? ⇒ Boolean
Does the current context have the data available for this builder to function
11 12 13 |
# File 'lib/riddler/context_builder.rb', line 11 def data_available? true end |
#extract_ids ⇒ Object
Extract IDs from the context (params, headers, JWTs, etc) and store them in context.ids
17 18 19 |
# File 'lib/riddler/context_builder.rb', line 17 def extract_ids # no-op end |
#process ⇒ Object
Inspect context for identifiers or data. Add any additional relevant information to the context
23 24 25 |
# File 'lib/riddler/context_builder.rb', line 23 def process # no-op end |