Class: Adhearsion::Rayo::Component::Input::Grammar

Inherits:
RayoNode show all
Defined in:
lib/adhearsion/rayo/component/input.rb

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


96
97
98
99
# File 'lib/adhearsion/rayo/component/input.rb', line 96

def inherit(xml_node)
  self.value = xml_node.content.strip
  super
end

#rayo_attributesObject


101
102
103
104
105
106
# File 'lib/adhearsion/rayo/component/input.rb', line 101

def rayo_attributes
  {
    'url' => url,
    'content-type' => content_type
  }
end

#rayo_children(root) ⇒ Object


108
109
110
# File 'lib/adhearsion/rayo/component/input.rb', line 108

def rayo_children(root)
  root.cdata value if value
end