Sha256: 2080330de276219fca3651e21a4b6f7d30e0e1f3295a94cbd58c6f1fb5047a3d

Contents?: true

Size: 721 Bytes

Versions: 3

Compression:

Stored size: 721 Bytes

Contents

# frozen_string_literal: true

module Appydave
  module Tools
    module YouTubeManager
      module Reports
        # Report on video content
        class VideoContentReport
          include KLog::Logging

          def print(data)
            # log.heading 'Video Details Report'
            log.subheading data[:title]
            log.kv 'Published At', data[:published_at]
            log.kv 'View Count', data[:view_count]
            log.kv 'Like Count', data[:like_count]
            log.kv 'Dislike Count', data[:dislike_count]
            log.kv 'Tags', data[:tags]&.join(', ')
            log.line
            puts data[:description]
            log.line
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appydave-tools-0.9.3 lib/appydave/tools/youtube_manager/reports/video_content_report.rb
appydave-tools-0.9.2 lib/appydave/tools/youtube_manager/reports/video_content_report.rb
appydave-tools-0.9.1 lib/appydave/tools/youtube_manager/reports/video_content_report.rb