Class: Video

Inherits:
MediaContext show all
Defined in:
app/models/contexts/video.rb

Overview

Context for attaching video files and data to deliverables

Instance Method Summary collapse

Methods inherited from MediaContext

#as_json, #source, #source?

Methods inherited from Context

#as_json, #context_type, #set_default_position

Instance Method Details

#poster?Boolean

Returns a boolean value representing whether or not a poster has been created for this context.

Returns:

  • (Boolean)

    Whether a poster exists



12
13
14
# File 'app/models/contexts/video.rb', line 12

def poster?
  !read_attribute('poster').nil?
end