Class: UEncode::CaptureOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/uencode/elements.rb

Constant Summary collapse

ATTRIBUTES =
[:destination, :rate, :stretch, :crop, :size]

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CaptureOutput

Returns a new instance of CaptureOutput.



66
67
68
69
# File 'lib/uencode/elements.rb', line 66

def initialize(options)
  super
  @stretch = false if @stretch.nil?
end

Instance Method Details

#to_xmlObject



71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/uencode/elements.rb', line 71

def to_xml
  %Q{
    <output>
      <capture>
        <rate>#{rate}</rate>
        <destination>#{destination}</destination>
      #{@crop ? @crop.to_xml : ""}
      #{@size ? @size.to_xml : ""}
      </capture>
    <//output>
  }
end