Class: Punchblock::Component::Input::Complete::Success

Inherits:
Event::Complete::Reason show all
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

Methods inherited from Event::Complete::Reason

#name, new

Methods inherited from RayoNode

class_from_registration, #eql?, import, #inspect, new, register, #source

Instance Method Details

#confidenceFloat

Returns A measure of the confidence of the result, between 0-1.

Returns:

  • (Float)

    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_attributesObject

:nodoc:



355
356
357
# File 'lib/punchblock/component/input.rb', line 355

def inspect_attributes # :nodoc:
  [:mode, :confidence, :interpretation, :utterance] + super
end

#interpretationString

Returns An intelligent interpretation of the meaning of the response.

Returns:

  • (String)

    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

#modeSymbol

Returns the mode by which the question was answered. May be :speech or :dtmf.

Returns:

  • (Symbol)

    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

#utteranceString

Returns The exact response gained.

Returns:

  • (String)

    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