Class: Revox::Models::VoiceRetrieveResponse::Voice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::VoiceRetrieveResponse::Voice
- Defined in:
- lib/revox/models/voice_retrieve_response.rb,
sig/revox/models/voice_retrieve_response.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(id:, name:, description: nil) ⇒ Voice
constructor
A new instance of Voice.
- #to_hash ⇒ { id: String, name: String, description: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, name:, description: nil) ⇒ Voice
Returns a new instance of Voice.
|
|
# File 'lib/revox/models/voice_retrieve_response.rb', line 32
|
Instance Attribute Details
#description ⇒ String?
30 |
# File 'lib/revox/models/voice_retrieve_response.rb', line 30 optional :description, String |
#id ⇒ String
20 |
# File 'lib/revox/models/voice_retrieve_response.rb', line 20 required :id, String |
#name ⇒ String
25 |
# File 'lib/revox/models/voice_retrieve_response.rb', line 25 required :name, String |
Instance Method Details
#to_hash ⇒ { id: String, name: String, description: String }
28 |
# File 'sig/revox/models/voice_retrieve_response.rbs', line 28
def to_hash: -> { id: String, name: String, description: String }
|