Class: Adhearsion::CallController::Input::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/adhearsion/call_controller/input/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence


6
7
8
# File 'lib/adhearsion/call_controller/input/result.rb', line 6

def confidence
  @confidence
end

#interpretationObject

Returns the value of attribute interpretation

Returns:

  • (Object)

    the current value of interpretation


6
7
8
# File 'lib/adhearsion/call_controller/input/result.rb', line 6

def interpretation
  @interpretation
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode


6
7
8
# File 'lib/adhearsion/call_controller/input/result.rb', line 6

def mode
  @mode
end

#nlsmlObject

Returns the value of attribute nlsml

Returns:

  • (Object)

    the current value of nlsml


6
7
8
# File 'lib/adhearsion/call_controller/input/result.rb', line 6

def nlsml
  @nlsml
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status


6
7
8
# File 'lib/adhearsion/call_controller/input/result.rb', line 6

def status
  @status
end

#utteranceObject

Returns the value of attribute utterance

Returns:

  • (Object)

    the current value of utterance


6
7
8
# File 'lib/adhearsion/call_controller/input/result.rb', line 6

def utterance
  @utterance
end

Instance Method Details

#inspectObject


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

Returns:

  • (Boolean)

19
20
21
# File 'lib/adhearsion/call_controller/input/result.rb', line 19

def match?
  status == :match
end

#to_sObject


7
8
9
# File 'lib/adhearsion/call_controller/input/result.rb', line 7

def to_s
  utterance
end