Class: Punchblock::Component::Input::Grammar
Constant Summary
collapse
- GRXML_CONTENT_TYPE =
'application/srgs+xml'
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, register, #source, #to_rayo, #to_xml
Instance Method Details
#inherit(xml_node) ⇒ Object
95
96
97
98
|
# File 'lib/punchblock/component/input.rb', line 95
def inherit(xml_node)
self.value = xml_node.content.strip
super
end
|
#rayo_attributes ⇒ Object
100
101
102
103
104
105
|
# File 'lib/punchblock/component/input.rb', line 100
def rayo_attributes
{
'url' => url,
'content-type' => content_type
}
end
|
#rayo_children(root) ⇒ Object
107
108
109
|
# File 'lib/punchblock/component/input.rb', line 107
def rayo_children(root)
root.cdata value if value
end
|