Class: Appydave::Tools::YouTubeManager::Reports::VideoDetailsReport

Inherits:
Object
  • Object
show all
Includes:
KLog::Logging
Defined in:
lib/appydave/tools/youtube_manager/reports/video_details_report.rb

Overview

Print video details

Instance Method Summary collapse

Instance Method Details



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/appydave/tools/youtube_manager/reports/video_details_report.rb', line 11

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 'Description', data.description[0..100]
  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 'Category ID', data.category_id
  log.kv 'Category Title', data.category_title
  log.kv 'Default Audio Language', data.default_audio_language
  log.kv 'Default Language', data.default_language
  log.kv 'Live Broadcast Content', data.live_broadcast_content
  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(', ')
end