Class: MockServer::A2A::RawExpectation Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mockserver/a2a.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.



66
67
68
# File 'lib/mockserver/a2a.rb', line 66

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.



70
71
72
# File 'lib/mockserver/a2a.rb', line 70

def to_h
  @hash
end