Class: MockServer::MCP::RawExpectation Private
- Inherits:
-
Object
- Object
- MockServer::MCP::RawExpectation
- Defined in:
- lib/mockserver/mcp.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Wraps a Hash so it responds to to_h, allowing it to be passed to Client#upsert.
Instance Method Summary collapse
-
#initialize(hash) ⇒ RawExpectation
constructor
private
A new instance of RawExpectation.
- #to_h ⇒ Object private
Constructor Details
#initialize(hash) ⇒ RawExpectation
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RawExpectation.
69 70 71 |
# File 'lib/mockserver/mcp.rb', line 69 def initialize(hash) @hash = hash end |
Instance Method Details
#to_h ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
73 74 75 |
# File 'lib/mockserver/mcp.rb', line 73 def to_h @hash end |