Class: Clova::OutputSpeech::SpeechInfoObject
- Inherits:
-
Object
- Object
- Clova::OutputSpeech::SpeechInfoObject
- Defined in:
- lib/clova-speech/output_speech.rb
Instance Attribute Summary collapse
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(lang:, value:, type:) ⇒ SpeechInfoObject
constructor
A new instance of SpeechInfoObject.
Constructor Details
#initialize(lang:, value:, type:) ⇒ SpeechInfoObject
Returns a new instance of SpeechInfoObject.
55 56 57 58 59 |
# File 'lib/clova-speech/output_speech.rb', line 55 def initialize(lang:, value:, type:) @lang = lang @type = type @value = value end |
Instance Attribute Details
#lang ⇒ Object
Returns the value of attribute lang.
53 54 55 |
# File 'lib/clova-speech/output_speech.rb', line 53 def lang @lang end |
#type ⇒ Object
Returns the value of attribute type.
53 54 55 |
# File 'lib/clova-speech/output_speech.rb', line 53 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
53 54 55 |
# File 'lib/clova-speech/output_speech.rb', line 53 def value @value end |
Instance Method Details
#as_json ⇒ Object
61 62 63 |
# File 'lib/clova-speech/output_speech.rb', line 61 def as_json {type: type, lang: lang, value: value} end |