Class: Vapi::ClientMessageHang

Inherits:
Object
  • Object
show all
Defined in:
lib/vapi_server_sdk/types/client_message_hang.rb

Constant Summary collapse

OMIT =
Object.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(additional_properties: nil) ⇒ Vapi::ClientMessageHang

Parameters:

  • additional_properties (OpenStruct) (defaults to: nil)

    Additional properties unmapped to the current class definition



18
19
20
21
# File 'lib/vapi_server_sdk/types/client_message_hang.rb', line 18

def initialize(additional_properties: nil)
  @additional_properties = additional_properties
  @_field_set = {}
end

Instance Attribute Details

#additional_propertiesOpenStruct (readonly)

Returns Additional properties unmapped to the current class definition.

Returns:

  • (OpenStruct)

    Additional properties unmapped to the current class definition



9
10
11
# File 'lib/vapi_server_sdk/types/client_message_hang.rb', line 9

def additional_properties
  @additional_properties
end

Class Method Details

.from_json(json_object:) ⇒ Vapi::ClientMessageHang

Deserialize a JSON object to an instance of ClientMessageHang

Parameters:

  • json_object (String)

Returns:



27
28
29
30
# File 'lib/vapi_server_sdk/types/client_message_hang.rb', line 27

def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  new(additional_properties: struct)
end

.validate_raw(obj:) ⇒ Void

Leveraged for Union-type generation, validate_raw attempts to parse the given

hash and check each fields type against the current object's property
definitions.

Parameters:

  • obj (Object)

Returns:

  • (Void)


45
# File 'lib/vapi_server_sdk/types/client_message_hang.rb', line 45

def self.validate_raw(obj:); end

Instance Method Details

#to_json(*_args) ⇒ String

Serialize an instance of ClientMessageHang to a JSON object

Returns:

  • (String)


35
36
37
# File 'lib/vapi_server_sdk/types/client_message_hang.rb', line 35

def to_json(*_args)
  @_field_set&.to_json
end