Class: Vapi::SbcConfiguration
- Inherits:
-
Object
- Object
- Vapi::SbcConfiguration
- Defined in:
- lib/vapi_server_sdk/types/sbc_configuration.rb
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
Class Method Summary collapse
-
.from_json(json_object:) ⇒ Vapi::SbcConfiguration
Deserialize a JSON object to an instance of SbcConfiguration.
-
.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.
Instance Method Summary collapse
- #initialize(additional_properties: nil) ⇒ Vapi::SbcConfiguration constructor
-
#to_json(*_args) ⇒ String
Serialize an instance of SbcConfiguration to a JSON object.
Constructor Details
#initialize(additional_properties: nil) ⇒ Vapi::SbcConfiguration
18 19 20 21 |
# File 'lib/vapi_server_sdk/types/sbc_configuration.rb', line 18 def initialize(additional_properties: nil) @additional_properties = additional_properties @_field_set = {} end |
Instance Attribute Details
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
9 10 11 |
# File 'lib/vapi_server_sdk/types/sbc_configuration.rb', line 9 def additional_properties @additional_properties end |
Class Method Details
.from_json(json_object:) ⇒ Vapi::SbcConfiguration
Deserialize a JSON object to an instance of SbcConfiguration
27 28 29 30 |
# File 'lib/vapi_server_sdk/types/sbc_configuration.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.
45 |
# File 'lib/vapi_server_sdk/types/sbc_configuration.rb', line 45 def self.validate_raw(obj:); end |
Instance Method Details
#to_json(*_args) ⇒ String
Serialize an instance of SbcConfiguration to a JSON object
35 36 37 |
# File 'lib/vapi_server_sdk/types/sbc_configuration.rb', line 35 def to_json(*_args) @_field_set&.to_json end |