Class: MockServer::MCP::RawExpectation Private

Inherits:
Object
  • Object
show all
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

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_hObject

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