Class: UEncode::Clip

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

Constant Summary collapse

ATTRIBUTES =
[:start, :duration]

Instance Method Summary collapse

Methods included from AttrSetting

included, #initialize, #set_attributes

Instance Method Details

#to_xmlObject



224
225
226
227
228
229
230
231
# File 'lib/uencode/elements.rb', line 224

def to_xml
  %Q{
    <clip>
    #{!start.nil? ? '<start>' + start.to_s + '</start>' : ""}
    #{!duration.nil? ? '<duration>' + duration.to_s + '</duration>' : ""}
    </clip>
  }
end