Sha256: 76582177423743933b797df37ae9dd98c99c04e5c417cdf1412a9d35b57985aa

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

# frozen_string_literal: true

module Appydave
  module Tools
    module YouTubeManager
      module Reports
        # Print video details
        class VideoDetailsReport
          include KLog::Logging

          def print(data)
            # log.heading 'Video Details Report'
            # log.subheading 'Video Details Report'
            log.section_heading 'Video Details Report'
            log.kv 'ID', data[:id]
            log.kv 'Title', 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 'Comment Count', data[:comment_count]
            log.kv 'Privacy Status', data[:privacy_status]
            log.kv 'Channel ID', data[:channel_id]
            log.kv 'Channel Title', data[:channel_title]
            log.kv 'Embeddable', data[:embeddable]
            log.kv 'License', data[:license]
            log.kv 'Recording Location', data[:recording_location]
            log.kv 'Recording Date', data[:recording_date]
            log.kv 'Tags', data[:tags]&.join(', ')
            log.kv 'Description', data[:description][0..100]
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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