Class: Adhearsion::Rayo::Component::Input::Complete::Match
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #connection, #original_component
Instance Method Summary
collapse
Methods inherited from RayoNode
#==, class_from_registration, from_xml, #inspect, #rayo_attributes, #rayo_children, register, #source, #to_rayo, #to_xml
Instance Method Details
#confidence ⇒ Object
148
149
150
|
# File 'lib/adhearsion/rayo/component/input.rb', line 148
def confidence
nlsml.best_interpretation[:confidence]
end
|
#inherit(xml_node) ⇒ Object
160
161
162
163
|
# File 'lib/adhearsion/rayo/component/input.rb', line 160
def inherit(xml_node)
self.nlsml = result_node(xml_node)
super
end
|
#interpretation ⇒ Object
156
157
158
|
# File 'lib/adhearsion/rayo/component/input.rb', line 156
def interpretation
nlsml.best_interpretation[:instance]
end
|
144
145
146
|
# File 'lib/adhearsion/rayo/component/input.rb', line 144
def mode
nlsml.best_interpretation[:input][:mode]
end
|
#nlsml=(other) ⇒ Object
134
135
136
137
138
139
140
141
142
|
# File 'lib/adhearsion/rayo/component/input.rb', line 134
def nlsml=(other)
doc = case other
when Nokogiri::XML::Element, Nokogiri::XML::Document
RubySpeech::NLSML::Document.new(other)
else
other
end
super doc
end
|
#utterance ⇒ Object
152
153
154
|
# File 'lib/adhearsion/rayo/component/input.rb', line 152
def utterance
nlsml.best_interpretation[:input][:content]
end
|