Class: UEncode::CaptureOutput
- Inherits:
-
Object
- Object
- UEncode::CaptureOutput
- Defined in:
- lib/uencode/elements.rb
Constant Summary collapse
- ATTRIBUTES =
[:destination, :rate, :stretch, :crop, :size]
Instance Method Summary collapse
-
#initialize(options) ⇒ CaptureOutput
constructor
A new instance of CaptureOutput.
- #to_xml ⇒ Object
Constructor Details
#initialize(options) ⇒ CaptureOutput
Returns a new instance of CaptureOutput.
60 61 62 63 |
# File 'lib/uencode/elements.rb', line 60 def initialize() super @stretch = false if @stretch.nil? end |
Instance Method Details
#to_xml ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/uencode/elements.rb', line 65 def to_xml %Q{ <output> <capture> <rate>#{rate}</rate> <destination>#{destination}</destination> #{@crop ? @crop.to_xml : ""} #{@size ? @size.to_xml : ""} </capture> <//output> } end |