Class: Video

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActsAsPrioritizable
Defined in:
app/models/video.rb

Instance Method Summary collapse

Instance Method Details

#thumbObject



17
18
19
20
21
# File 'app/models/video.rb', line 17

def thumb
  case remote_type
    when "Youtube" then "http://img.youtube.com/vi/" + remote_id + "/1.jpg"
  end
end

#urlObject



10
11
12
13
14
15
# File 'app/models/video.rb', line 10

def url
  case remote_type
    when "Youtube" then "http://www.youtube.com/v/"
    when "Facebook" then "http://www.facebook.com/v/"
  end + remote_id
end