lib/adhearsion/call_controller/input/result.rb in adhearsion-3.0.0.beta1 vs lib/adhearsion/call_controller/input/result.rb in adhearsion-3.0.0.beta2
- old
+ new
@@ -7,10 +7,10 @@
def to_s
utterance
end
def inspect
- "#<#{self.class} status=#{status.inspect}, confidence=#{confidence.inspect}, utterance=#{utterance.inspect}, interpretation=#{interpretation.inspect}, nlsml=#{nlsml.inspect}>"
+ "#<#{self.class} status=#{status.inspect}, confidence=#{confidence.inspect}, utterance=#{utterance.inspect}, interpretation=#{interpretation.inspect}, nlsml='#{nlsml && nlsml.to_xml.split("\n").join(' ')}'>"
end
def utterance=(other)
self[:utterance] = mode == :dtmf ? parse_dtmf(other) : other
end