class TumblrThemer::Post::Video

Public Instance Methods

player() click to toggle source
# File lib/tumblr-themer/post/video.rb, line 2
def player
  data['player']||[{}]
end
video_size(size) click to toggle source
# File lib/tumblr-themer/post/video.rb, line 6
def video_size size
  (player.find {|p| p['width'] == size}||player.first)['embed_code']
end