Sha256: 8f3417420fff5f04e6eea585b37b3791b6fda4b5f9365c13779cf5f6cb5d78dc

Contents?: true

Size: 528 Bytes

Versions: 19

Compression:

Stored size: 528 Bytes

Contents

# encoding: utf-8

module Nimbu
  module Endpoints
    class Videos < Endpoint

      def list(*args)
        arguments(args)

        response = get_request("/videos", arguments.params)
        return response unless block_given?
        response.each { |el| yield el }
      end
      alias :all :list

      def get(*args)
        arguments(args, :required => [:video_id])

        get_request("/videos/#{video_id}", arguments.params)
      end
      alias :find :get


    end # Authorizations
  end # Endpoints
end # Nimbu

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
nimbu-api-0.4.4 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.4.3 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.4.2 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.4.1 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.4.0 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.3.0 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.2.1 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.2 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.2.beta lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.1.5 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.1.4 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.1.3 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.1.1 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.1 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.0.2 lib/nimbu-api/endpoints/videos.rb
nimbu-api-0.0.1 lib/nimbu-api/endpoints/videos.rb