Class: Adhearsion::CallController::Input::Result
- Defined in:
- lib/adhearsion/call_controller/input/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
6 7 8 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 6 def confidence @confidence end |
#interpretation ⇒ Object
Returns the value of attribute interpretation
6 7 8 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 6 def interpretation @interpretation end |
#mode ⇒ Object
Returns the value of attribute mode
6 7 8 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 6 def mode @mode end |
#nlsml ⇒ Object
Returns the value of attribute nlsml
6 7 8 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 6 def nlsml @nlsml end |
#status ⇒ Object
Returns the value of attribute status
6 7 8 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 6 def status @status end |
#utterance ⇒ Object
Returns the value of attribute utterance
6 7 8 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 6 def utterance @utterance end |
Instance Method Details
#inspect ⇒ Object
11 12 13 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 11 def inspect "#<#{self.class} status=#{status.inspect}, confidence=#{confidence.inspect}, utterance=#{utterance.inspect}, interpretation=#{interpretation.inspect}, nlsml='#{nlsml && nlsml.to_xml.split("\n").join(' ')}'>" end |
#match? ⇒ Boolean
19 20 21 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 19 def match? status == :match end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/adhearsion/call_controller/input/result.rb', line 7 def to_s utterance end |