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

Version Path
mokio-2.0.8 lib/mokio/concerns/models/youtube.rb
mokio-0.0.15 lib/mokio/concerns/models/youtube.rb
mokio-0.0.14 lib/mokio/concerns/models/youtube.rb
mokio-0.0.13 lib/mokio/concerns/models/youtube.rb
mokio-0.0.12 lib/mokio/concerns/models/youtube.rb
mokio-0.0.11 lib/mokio/concerns/models/youtube.rb
mokio-0.0.10 lib/mokio/concerns/models/youtube.rb
mokio-0.0.9 lib/mokio/concerns/models/youtube.rb
mokio-0.0.8 lib/mokio/concerns/models/youtube.rb
mokio-0.0.6 lib/mokio/concerns/models/youtube.rb
mokio-0.0.5 lib/mokio/concerns/models/youtube.rb