Class: Punchblock::MediaNode
- Includes:
- MediaContainer
- Defined in:
- lib/punchblock/media_node.rb
Direct Known Subclasses
Component::Tropo::Ask::Prompt, Component::Tropo::Conference::Announcement, Component::Tropo::Conference::Music
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #original_component
Class Method Summary collapse
Methods included from MediaContainer
#inspect_attributes, #ssml, #ssml=, #voice, #voice=
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, #inspect_attributes, register, #source
Class Method Details
.new(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/punchblock/media_node.rb', line 5 def self.new( = {}) super().tap do |new_node| case when Hash new_node << .delete(:text) if [:text] .each_pair { |k,v| new_node.send :"#{k}=", v } when Nokogiri::XML::Element new_node.inherit end end end |