Class: Clova::OutputSpeech::SpeechInfoObject

Inherits:
Object
  • Object
show all
Defined in:
lib/clova-speech/output_speech.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#langObject

Returns the value of attribute lang.



53
54
55
# File 'lib/clova-speech/output_speech.rb', line 53

def lang
  @lang
end

#typeObject

Returns the value of attribute type.



53
54
55
# File 'lib/clova-speech/output_speech.rb', line 53

def type
  @type
end

#valueObject

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_jsonObject



61
62
63
# File 'lib/clova-speech/output_speech.rb', line 61

def as_json
  {type: type, lang: lang, value: value}
end