class ApiSim::SmartRequest
Public Class Methods
new(obj, matcher)
click to toggle source
Calls superclass method
# File lib/api_sim/matchers/dynamic_request_matcher.rb, line 40 def initialize(obj, matcher) super(obj) @matcher = matcher end
Public Instance Methods
[](requested_part)
click to toggle source
# File lib/api_sim/matchers/dynamic_request_matcher.rb, line 45 def [](requested_part) @matcher.route.match(path)[requested_part] end