Class: AdhearsionASR::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/adhearsion-asr/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



2
3
4
# File 'lib/adhearsion-asr/result.rb', line 2

def confidence
  @confidence
end

#interpretationObject

Returns the value of attribute interpretation

Returns:

  • (Object)

    the current value of interpretation



2
3
4
# File 'lib/adhearsion-asr/result.rb', line 2

def interpretation
  @interpretation
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



2
3
4
# File 'lib/adhearsion-asr/result.rb', line 2

def mode
  @mode
end

#nlsmlObject

Returns the value of attribute nlsml

Returns:

  • (Object)

    the current value of nlsml



2
3
4
# File 'lib/adhearsion-asr/result.rb', line 2

def nlsml
  @nlsml
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



2
3
4
# File 'lib/adhearsion-asr/result.rb', line 2

def status
  @status
end

#utteranceObject

Returns the value of attribute utterance

Returns:

  • (Object)

    the current value of utterance



2
3
4
# File 'lib/adhearsion-asr/result.rb', line 2

def utterance
  @utterance
end

Instance Method Details

#inspectObject



7
8
9
# File 'lib/adhearsion-asr/result.rb', line 7

def inspect
  "#<#{self.class} status=#{status.inspect}, confidence=#{confidence.inspect}, utterance=#{utterance.inspect}, interpretation=#{interpretation.inspect}, nlsml=#{nlsml.inspect}>"
end

#match?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/adhearsion-asr/result.rb', line 20

def match?
  status == :match
end

#responseObject



15
16
17
18
# File 'lib/adhearsion-asr/result.rb', line 15

def response
  Adhearsion.deprecated "#utterance"
  utterance
end

#to_sObject



3
4
5
# File 'lib/adhearsion-asr/result.rb', line 3

def to_s
  utterance
end