Class: AdhearsionASR::Result
- Inherits:
-
Struct
- Object
- Struct
- AdhearsionASR::Result
- Defined in:
- lib/adhearsion-asr/result.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#interpretation ⇒ Object
Returns the value of attribute interpretation.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#nlsml ⇒ Object
Returns the value of attribute nlsml.
-
#status ⇒ Object
Returns the value of attribute status.
-
#utterance ⇒ Object
Returns the value of attribute utterance.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
2 3 4 |
# File 'lib/adhearsion-asr/result.rb', line 2 def confidence @confidence end |
#interpretation ⇒ Object
Returns the value of attribute interpretation
2 3 4 |
# File 'lib/adhearsion-asr/result.rb', line 2 def interpretation @interpretation end |
#mode ⇒ Object
Returns the value of attribute mode
2 3 4 |
# File 'lib/adhearsion-asr/result.rb', line 2 def mode @mode end |
#nlsml ⇒ Object
Returns the value of attribute nlsml
2 3 4 |
# File 'lib/adhearsion-asr/result.rb', line 2 def nlsml @nlsml end |
#status ⇒ Object
Returns the value of attribute status
2 3 4 |
# File 'lib/adhearsion-asr/result.rb', line 2 def status @status end |
#utterance ⇒ Object
Returns the value of attribute utterance
2 3 4 |
# File 'lib/adhearsion-asr/result.rb', line 2 def utterance @utterance end |
Instance Method Details
#inspect ⇒ Object
7 8 9 |
# File 'lib/adhearsion-asr/result.rb', line 7 def inspect "#<#{self.class} status=#{status.inspect}, confidence=#{confidence.inspect}, utterance=#{utterance.inspect}, interpretation=#{interpretation.inspect}, nlsml=#{nlsml.inspect}>" end |
#match? ⇒ Boolean
20 21 22 |
# File 'lib/adhearsion-asr/result.rb', line 20 def match? status == :match end |
#response ⇒ Object
15 16 17 18 |
# File 'lib/adhearsion-asr/result.rb', line 15 def response Adhearsion.deprecated "#utterance" utterance end |
#to_s ⇒ Object
3 4 5 |
# File 'lib/adhearsion-asr/result.rb', line 3 def to_s utterance end |