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.



60
61
62
63
# File 'lib/uencode/elements.rb', line 60

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

Instance Method Details

#to_xmlObject



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