Class: HttpRouter::Node::UserAgent
- Inherits:
-
AbstractRequestNode
- Object
- HttpRouter::Node
- AbstractRequestNode
- HttpRouter::Node::UserAgent
- Defined in:
- lib/http_router/node/user_agent.rb
Instance Attribute Summary
Attributes inherited from AbstractRequestNode
Attributes inherited from HttpRouter::Node
Instance Method Summary collapse
-
#initialize(router, parent, user_agents) ⇒ UserAgent
constructor
A new instance of UserAgent.
Methods inherited from AbstractRequestNode
#inspect_label, #to_code, #usable?
Methods inherited from HttpRouter::Node
#add_destination, #add_free_match, #add_glob, #add_glob_regexp, #add_host, #add_lookup, #add_match, #add_request_method, #add_scheme, #add_spanning_match, #add_user_agent, #add_variable, #depth, #inspect, #inspect_label, #inspect_matchers_body, #usable?
Constructor Details
#initialize(router, parent, user_agents) ⇒ UserAgent
Returns a new instance of UserAgent.
4 5 6 |
# File 'lib/http_router/node/user_agent.rb', line 4 def initialize(router, parent, user_agents) super(router, parent, user_agents, :user_agent) end |