class MovieMasher::Clip

represents a clip in a mash

Public Class Methods

create(hash = nil) click to toggle source

Returns a new instance.

# File lib/clip.rb, line 6
def self.create(hash = nil)
  (hash.is_a?(Clip) ? hash : Clip.new(hash))
end

Public Instance Methods

base_source() click to toggle source
Transfer

Resolves relative URLs.

Default

MovieMasher::Job#base_source

Types

Just Type::MASH.

# File lib/clip.rb, line 12
def base_source
  _get(__method__)
end
duration() click to toggle source
# File lib/clip.rb, line 15
def duration
  _get(__method__)
end
duration=(value) click to toggle source
Float

Seconds of Clip available for presentation.

Default

Probed from downloaded.

Types

All except Type::IMAGE.

# File lib/clip.rb, line 21
def duration=(value)
  _set(__method__, value)
end
error?() click to toggle source
# File lib/clip.rb, line 24
def error?
  nil
end
length() click to toggle source
# File lib/clip.rb, line 27
def length
  _get(__method__)
end
length=(value) click to toggle source
Float

Seconds the Clip appears in the mashup.

Default

duration - offset

# File lib/clip.rb, line 32
def length=(value)
  _set(__method__, value)
end
loop() click to toggle source
# File lib/clip.rb, line 35
def loop
  _get(__method__)
end
loop=(value) click to toggle source
Integer

Number of times to loop Clip.

Types

Just Type::AUDIO.

# File lib/clip.rb, line 40
def loop=(value)
  _set(__method__, value)
end
module_source() click to toggle source
Transfer

Resolves relative font URLs for modules.

Default

MovieMasher::Job#module_source

Types

Just Type::MASH.

# File lib/clip.rb, line 46
def module_source
  _get(__method__)
end
start() click to toggle source
# File lib/clip.rb, line 49
def start
  _get(__method__)
end
start=(value) click to toggle source
Float

Seconds from start of mashup to introduce the Clip.

Default

-1.0 means after previous audio in mashup completes.

Types

Just Type::AUDIO.

# File lib/clip.rb, line 55
def start=(value)
  _set(__method__, value)
end