Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'for' method to audit 10 videos of a channel #9

Closed
wants to merge 1 commit into from

Conversation

kangkyu
Copy link
Contributor

@kangkyu kangkyu commented Feb 18, 2016

  • has_end_cards?, has_link_to_own_channel?, has_subscribe_annotations?, has_brand_anchoring?, has_info_cards? methods into private
  • Audit module into class

@@ -1,6 +1,6 @@
# Yt::Audit

Welcome! This is a Ruby library you can audit a YouTube video.
Welcome! This is a Ruby library you can audit a YouTube channel.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo here

# => false
audit = Yt::Audit.for('UCPCk_8dtVyR1lLHMBEILW4g')
# => #<Yt::Audit:0x007f822ba18f38 @info_card_count=10, @brand_anchor_count=10, @subscribe_count=0, @association_count=0, @end_card_count=0, @videos_count=10>
audit.videos_count
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use singular everywhere else (e.g. info_card), then you should probably make this singular too for coherence (video_count)

@kangkyu kangkyu closed this Feb 18, 2016
@kangkyu kangkyu deleted the for_method branch February 25, 2016 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants