Exception: StubRequests::UriSegmentMismatch
- Defined in:
- lib/stub_requests/exceptions.rb
Overview
UriSegmentMismatch is raised when a segment cannot be replaced
Instance Attribute Summary collapse
- #expected_keys ⇒ Object readonly
- #received_keys ⇒ Object readonly
- #uri ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(uri:, expected_keys:, received_keys:) ⇒ UriSegmentMismatch
constructor
A new instance of UriSegmentMismatch.
Constructor Details
#initialize(uri:, expected_keys:, received_keys:) ⇒ UriSegmentMismatch
Returns a new instance of UriSegmentMismatch
99 100 101 102 103 104 105 |
# File 'lib/stub_requests/exceptions.rb', line 99 def initialize(uri:, expected_keys:, received_keys:) @uri = uri @expected_keys = expected_keys @received_keys = received_keys super(.join("\n ")) end |
Instance Attribute Details
#expected_keys ⇒ Object (readonly)
98 99 100 |
# File 'lib/stub_requests/exceptions.rb', line 98 def expected_keys @expected_keys end |
#received_keys ⇒ Object (readonly)
98 99 100 |
# File 'lib/stub_requests/exceptions.rb', line 98 def received_keys @received_keys end |
#uri ⇒ Object (readonly)
98 99 100 |
# File 'lib/stub_requests/exceptions.rb', line 98 def uri @uri end |