Class: Wayfarer::Routing::QueryRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/wayfarer/routing/query_rule.rb

Instance Attribute Summary

Attributes inherited from Rule

#child_rules, #target_action

Instance Method Summary collapse

Methods inherited from Rule

#build_child_rule_chain_from_options, #filetypes, #host, #if, #invoke, #matches?, #matching_rule_chain, #params, #path, #protocol, #query, #uri

Constructor Details

#initialize(field_constraints, opts = {}, &proc) ⇒ QueryRule

Returns a new instance of QueryRule.


9
10
11
12
# File 'lib/wayfarer/routing/query_rule.rb', line 9

def initialize(field_constraints, opts = {}, &proc)
  @field_constraints = field_constraints
  super(opts, &proc)
end