Class: Riddler::ContextBuilders::UserAgent

Inherits:
Riddler::ContextBuilder show all
Defined in:
lib/riddler/context_builders/user_agent.rb

Instance Attribute Summary

Attributes inherited from Riddler::ContextBuilder

#context

Instance Method Summary collapse

Methods inherited from Riddler::ContextBuilder

#data_available?, #extract_ids, #initialize

Constructor Details

This class inherits a constructor from Riddler::ContextBuilder

Instance Method Details

#processObject

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