Class: Plivo::XML::Play

Inherits:
Element show all
Defined in:
lib/plivo/xml/play.rb

Instance Attribute Summary

Attributes inherited from Element

#name, #node

Instance Method Summary collapse

Methods inherited from Element

#add, #convert_value, #method_missing, #to_s, #to_xml

Constructor Details

#initialize(body, attributes = {}) ⇒ Play

Returns a new instance of Play.



7
8
9
10
# File 'lib/plivo/xml/play.rb', line 7

def initialize(body, attributes = {})
  raise PlivoXMLError 'No url set for Play' unless body
  super(body, attributes)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Plivo::XML::Element