Sha256: df42f3bed7fc1f5ca8bb8634eb17614678ee849127beb4b144792c063504e942
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: tru module YoutubeVideo # comment's author infomation class Author attr_reader :author_name, :author_image_url, :author_channel_url, :like_count def initialize(data) return unless data @author_name = data['authorDisplayName'] @author_image_url = data['authorProfileImageUrl'] @author_channel_url = data['authorChannelUrl'] @like_count = data['likeCount'].to_i end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
YPBT-0.2.12 | lib/YPBT/author.rb |
YPBT-0.2.11 | lib/YPBT/author.rb |
YPBT-0.2.10 | lib/YPBT/author.rb |
YPBT-0.2.4 | lib/YPBT/author.rb |
YPBT-0.2.2 | lib/YPBT/author.rb |