Sha256: 579c3302e0ce63df52c7936551c654fa47fd6396da4188bf0163ce3d4385c86c

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

module Youku
  module V2
    class Schemas < Base
      BASE_URI = "#{BASE_URI}/schemas"

      # Public: Get video API.
      #
      # Returns the instance of Youku::V2::Schemas::Video.
      def video
        Video.new(client)
      end

      class Video < Base
        BASE_URI = "#{BASE_URI}/video"

        # Public: Get video categories.
        #
        # See: http://open.youku.com/docs?id=90
        #
        # Returns the instance of Youku::V2::Request.
        def category()
          Youku::V2::Request.new "#{BASE_URI}/category.json"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
youku_client-0.0.4 lib/youku/v2/schemas.rb