Sha256: ffd9a99ca71b5622938eb033a5b0eda909a83383c76249c776b14ff423fee41c
Contents?: true
Size: 619 Bytes
Versions: 11
Compression:
Stored size: 619 Bytes
Contents
module Mokio module Concerns module Models # # Concern for Youtube model # module Youtube extend ActiveSupport::Concern included do end module ClassMethods # # Returns VideoInfo object with movie for specified movie_url. # Using <b>gem 'video_info'</b> # def find_movie(movie_url) begin video = VideoInfo.new(movie_url) rescue video = nil error = true end video end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems