Class: Postablr::Entry::Video
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Postablr::Entry::Video
- Defined in:
- app/models/postablr/entry/video.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
9 10 11 |
# File 'app/models/postablr/entry/video.rb', line 9 def url @url end |
Instance Method Details
#check_video ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/postablr/entry/video.rb', line 12 def check_video v = UnvlogIt.new(self.url) self.title = v.title self.thumbnail = v.thumbnail self. = v. self.duration = v.duration self.download_url = v.download_url self. = v.("100%", "600") self.flv = v.flv end |
#embed(width, height, options = {}) ⇒ Object
23 24 25 |
# File 'app/models/postablr/entry/video.rb', line 23 def (width, height, ={}) (width=425, height=344, ={}) end |