Sha256: 71f4e21fbd20e803a74a73e9e07a4a3010578dbf4a46544d28caeb22542f6b2a

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

module Vzaar
  module Resource
    class Video < Base
      root_node "//oembed"

      attribute :type
      attribute :title
      attribute :html
      attribute :description
      attribute :provider_name
      attribute :provider_url
      attribute :thumbnail_url
      attribute :framegrab_url
      attribute :user_name, field: :author_name
      attribute :user_url, field: :author_url
      attribute :url, field: :video_url
      attribute :user_account_type_id, field: :author_account, type: Integer
      attribute :width, type: Integer
      attribute :height, type: Integer
      attribute :thumbnail_width, type: Integer
      attribute :thumbnail_height, type: Integer
      attribute :framegrab_height, type: Integer
      attribute :framegrab_width, type: Integer
      attribute :duration, type: Integer
      attribute :play_count, type: Integer
      attribute :total_size, type: Integer
      attribute :status_id, field: :video_status_id, type: Integer
      attribute :status_description, field: :video_status_description

      def state
        "Processing completed"
      end

      def error
        ""
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vzaar-1.4.4 lib/vzaar/resources/video.rb
vzaar-1.4.1 lib/vzaar/resources/video.rb
vzaar-1.3.1 lib/vzaar/resources/video.rb
vzaar-1.3.0 lib/vzaar/resources/video.rb
vzaar-1.2.4 lib/vzaar/resources/video.rb
vzaar-1.2.3 lib/vzaar/resources/video.rb
vzaar-1.2.2 lib/vzaar/resources/video.rb
vzaar-1.0.0 lib/vzaar/resources/video.rb