Method: UEncode::CaptureOutput#to_xml
- Defined in:
- lib/uencode/elements.rb
#to_xml ⇒ Object
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/uencode/elements.rb', line 175 def to_xml %Q{ <capture> <rate>#{rate}</rate> #{!zip.nil? ? '<zip>' + zip.to_s + '</zip>' : ""} #{!prefix.nil? ? '<prefix>' + prefix.to_s + '</prefix>' : ""} <destinations> #{@destinations.inject("") { |s, dest| s << dest.to_xml}} </destinations> #{@size ? @size.to_xml : ""} #{@max_size ? @max_size.to_xml : ""} #{@overlay ? @overlay.to_xml : ""} </capture> } end |