Sha256: 63811239cbb22079597445fa54ca3b28d38937659a35e94403e1868f66e7b6ae

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

module Videojuicer
  class Presentation
    include Videojuicer::Resource
    include Videojuicer::Resource::Embeddable
    include Videojuicer::Exceptions
    
    property :slug,               String
    property :title,              String
    property :author,             String
    property :author_url,         String
    property :abstract,           String
    property :user_id,            Integer,  :writer=>:private
      belongs_to :user, :class=>Videojuicer::User
    property :callback_url,       String

    property :state,              String,   :default=>"ready" # see the STATES constant for values
    property :disclosure,         String,   :default=>"public" # see DISCLOSURES constant for values
    property :publish_from,       DateTime
    property :publish_until,      DateTime

    property :document_layout,    String
    property :document_content,   String # the presentation document
    property :document_type,      String, :default=>"SMIL 3.0"

    property :created_at,         DateTime
    property :updated_at,         DateTime

    property :image_asset_id,     Integer # FIXME make me a relationship helper
    property :image_asset_url,    String, :writer=>:private

    property :tag_list,           String
   
    def permalink
      proxy = proxy_for(config)
      "#{proxy.host_stub}/presentations/#{id}.html?seed_name=#{seed_name}".gsub(":80/","/")
    end
   
  end 
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vj-sdk-0.5.6 lib/videojuicer/presentation.rb
vj-sdk-0.5.5 lib/videojuicer/presentation.rb
vj-sdk-0.5.4 lib/videojuicer/presentation.rb
vj-sdk-0.5.3 lib/videojuicer/presentation.rb
vj-sdk-0.5.2 lib/videojuicer/presentation.rb
vj-sdk-0.5.1 lib/videojuicer/presentation.rb