Class: Punchblock::Component::Input::Complete::Success
- Inherits:
-
Event::Complete::Reason
- Object
- Niceogiri::XML::Node
- RayoNode
- Event::Complete::Reason
- Punchblock::Component::Input::Complete::Success
- Defined in:
- lib/punchblock/component/input.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #domain, #mixer_name, #original_component
Instance Method Summary collapse
-
#confidence ⇒ Float
A measure of the confidence of the result, between 0-1.
- #confidence=(other) ⇒ Object
-
#inspect_attributes ⇒ Object
:nodoc:.
-
#interpretation ⇒ String
An intelligent interpretation of the meaning of the response.
- #interpretation=(other) ⇒ Object
-
#mode ⇒ Symbol
The mode by which the question was answered.
- #mode=(other) ⇒ Object
-
#utterance ⇒ String
The exact response gained.
- #utterance=(other) ⇒ Object
Methods inherited from Event::Complete::Reason
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, new, register, #source
Instance Method Details
#confidence ⇒ Float
Returns A measure of the confidence of the result, between 0-1.
325 326 327 |
# File 'lib/punchblock/component/input.rb', line 325 def confidence read_attr :confidence, :to_f end |
#confidence=(other) ⇒ Object
329 330 331 |
# File 'lib/punchblock/component/input.rb', line 329 def confidence=(other) write_attr :confidence, other end |
#inspect_attributes ⇒ Object
:nodoc:
355 356 357 |
# File 'lib/punchblock/component/input.rb', line 355 def inspect_attributes # :nodoc: [:mode, :confidence, :interpretation, :utterance] + super end |
#interpretation ⇒ String
Returns An intelligent interpretation of the meaning of the response.
336 337 338 |
# File 'lib/punchblock/component/input.rb', line 336 def interpretation interpretation_node.text end |
#interpretation=(other) ⇒ Object
340 341 342 |
# File 'lib/punchblock/component/input.rb', line 340 def interpretation=(other) interpretation_node.content = other end |
#mode ⇒ Symbol
Returns the mode by which the question was answered. May be :speech or :dtmf.
314 315 316 |
# File 'lib/punchblock/component/input.rb', line 314 def mode read_attr :mode, :to_sym end |
#mode=(other) ⇒ Object
318 319 320 |
# File 'lib/punchblock/component/input.rb', line 318 def mode=(other) write_attr :mode, other end |
#utterance ⇒ String
Returns The exact response gained.
347 348 349 |
# File 'lib/punchblock/component/input.rb', line 347 def utterance utterance_node.text end |
#utterance=(other) ⇒ Object
351 352 353 |
# File 'lib/punchblock/component/input.rb', line 351 def utterance=(other) utterance_node.content = other end |