Class: Riddler::ContextBuilders::UserAgent
- Inherits:
-
Riddler::ContextBuilder
- Object
- Riddler::ContextBuilder
- Riddler::ContextBuilders::UserAgent
- Defined in:
- lib/riddler/context_builders/user_agent.rb
Instance Attribute Summary
Attributes inherited from Riddler::ContextBuilder
Instance Method Summary collapse
-
#process ⇒ Object
Look for the user_agent header and build a drop for that.
Methods inherited from Riddler::ContextBuilder
#data_available?, #extract_ids, #initialize
Constructor Details
This class inherits a constructor from Riddler::ContextBuilder
Instance Method Details
#process ⇒ Object
Look for the user_agent header and build a drop for that
9 10 11 12 |
# File 'lib/riddler/context_builders/user_agent.rb', line 9 def process drop = UserAgentDrop.new context.headers.user_agent context.assign "user_agent", drop end |