Class: Typecast::Models::PresetPrompt
- Inherits:
-
Object
- Object
- Typecast::Models::PresetPrompt
- Defined in:
- lib/typecast/models.rb
Instance Attribute Summary collapse
-
#emotion_intensity ⇒ Object
readonly
Returns the value of attribute emotion_intensity.
-
#emotion_preset ⇒ Object
readonly
Returns the value of attribute emotion_preset.
Instance Method Summary collapse
-
#initialize(emotion_preset: nil, emotion_intensity: nil) ⇒ PresetPrompt
constructor
A new instance of PresetPrompt.
- #to_h ⇒ Object
Constructor Details
#initialize(emotion_preset: nil, emotion_intensity: nil) ⇒ PresetPrompt
Returns a new instance of PresetPrompt.
83 84 85 86 |
# File 'lib/typecast/models.rb', line 83 def initialize(emotion_preset: nil, emotion_intensity: nil) @emotion_preset = emotion_preset @emotion_intensity = emotion_intensity end |
Instance Attribute Details
#emotion_intensity ⇒ Object (readonly)
Returns the value of attribute emotion_intensity.
81 82 83 |
# File 'lib/typecast/models.rb', line 81 def emotion_intensity @emotion_intensity end |
#emotion_preset ⇒ Object (readonly)
Returns the value of attribute emotion_preset.
81 82 83 |
# File 'lib/typecast/models.rb', line 81 def emotion_preset @emotion_preset end |
Instance Method Details
#to_h ⇒ Object
88 89 90 |
# File 'lib/typecast/models.rb', line 88 def to_h Models.compact(emotion_type: "preset", emotion_preset: emotion_preset, emotion_intensity: emotion_intensity) end |