Class: MockServer::LLM::RawExpectation Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mockserver/llm.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 (which serialises via to_h).

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.



436
437
438
# File 'lib/mockserver/llm.rb', line 436

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.



440
441
442
# File 'lib/mockserver/llm.rb', line 440

def to_h
  @hash
end