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
Constant Summary
Constants inherited from RayoNode
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #component_id, #connection, #domain, #original_component, #target_call_id, #target_mixer_name
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.
327 328 329 |
# File 'lib/punchblock/component/input.rb', line 327 def confidence read_attr :confidence, :to_f end |
#confidence=(other) ⇒ Object
331 332 333 |
# File 'lib/punchblock/component/input.rb', line 331 def confidence=(other) write_attr :confidence, other end |
#inspect_attributes ⇒ Object
:nodoc:
357 358 359 |
# File 'lib/punchblock/component/input.rb', line 357 def inspect_attributes # :nodoc: [:mode, :confidence, :interpretation, :utterance] + super end |
#interpretation ⇒ String
Returns An intelligent interpretation of the meaning of the response.
338 339 340 |
# File 'lib/punchblock/component/input.rb', line 338 def interpretation interpretation_node.text end |
#interpretation=(other) ⇒ Object
342 343 344 |
# File 'lib/punchblock/component/input.rb', line 342 def interpretation=(other) interpretation_node.content = other end |
#mode ⇒ Symbol
Returns the mode by which the question was answered. May be :speech or :dtmf.
316 317 318 |
# File 'lib/punchblock/component/input.rb', line 316 def mode read_attr :mode, :to_sym end |
#mode=(other) ⇒ Object
320 321 322 |
# File 'lib/punchblock/component/input.rb', line 320 def mode=(other) write_attr :mode, other end |
#utterance ⇒ String
Returns The exact response gained.
349 350 351 |
# File 'lib/punchblock/component/input.rb', line 349 def utterance utterance_node.text end |
#utterance=(other) ⇒ Object
353 354 355 |
# File 'lib/punchblock/component/input.rb', line 353 def utterance=(other) utterance_node.content = other end |