Class: Typecast::Models::Prompt
- Inherits:
-
Object
- Object
- Typecast::Models::Prompt
- 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) ⇒ Prompt
constructor
A new instance of Prompt.
- #to_h ⇒ Object
Constructor Details
#initialize(emotion_preset: nil, emotion_intensity: nil) ⇒ Prompt
Returns a new instance of Prompt.
70 71 72 73 |
# File 'lib/typecast/models.rb', line 70 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.
68 69 70 |
# File 'lib/typecast/models.rb', line 68 def emotion_intensity @emotion_intensity end |
#emotion_preset ⇒ Object (readonly)
Returns the value of attribute emotion_preset.
68 69 70 |
# File 'lib/typecast/models.rb', line 68 def emotion_preset @emotion_preset end |
Instance Method Details
#to_h ⇒ Object
75 76 77 |
# File 'lib/typecast/models.rb', line 75 def to_h Models.compact(emotion_preset: emotion_preset, emotion_intensity: emotion_intensity) end |