class Vellum::FulfilledFunctionCall
The final resolved function call value.
def self.from_json(json_object:)
-
(FulfilledFunctionCall)-
Parameters:
-
json_object(JSON) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) JSON.parse(json_object) arguments = struct.arguments id = struct.id name = struct.name new(arguments: arguments, id: id, name: name, additional_properties: struct) end
def self.validate_raw(obj:)
-
(Void)-
Parameters:
-
obj(Object) --
def self.validate_raw(obj:) obj.arguments.is_a?(Hash) != false || raise("Passed value for field obj.arguments is not the expected type, validation failed.") obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.") obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.") end
def initialize(arguments:, name:, id: nil, additional_properties: nil)
-
(FulfilledFunctionCall)-
Parameters:
-
additional_properties(OpenStruct) -- Additional properties unmapped to the current class definition -
name(String) -- -
id(String) -- -
arguments(Hash{String => String}) --
def initialize(arguments:, name:, id: nil, additional_properties: nil) # @type [Hash{String => String}] @arguments = arguments # @type [String] @id = id # @type [String] @name = name # @type [OpenStruct] Additional properties unmapped to the current class definition @additional_properties = additional_properties end
def to_json(*_args)
-
(JSON)-
def to_json(*_args) { "arguments": @arguments, "id": @id, "name": @name }.to_json end