Fullscreen/yt

View on GitHub
lib/yt/models/content_owner_detail.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'yt/models/base'

module Yt
  module Models
    # @private
    # Encapsulates channel data that is relevant for YouTube Partners linked
    # with the channel.
    # @see https://developers.google.com/youtube/v3/docs/channels#contentOwnerDetails
    class ContentOwnerDetail < Base
      def initialize(options = {})
        @data = options[:data] || {}
      end

      has_attribute :content_owner
      has_attribute :time_linked, type: Time
    end
  end
end