Sha256: b5757fe513b0f2ca3cd48757e404b5f0a847b5de79e883d20e403524fc726951
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
class IGScrape::Comment attr_accessor :id, :text, :created_at, :author_id, :author_name, :author_profile_pic def initialize(payload) load_from_payload(payload) end private def load_from_payload payload @id = payload["id"] @text = payload["text"] @created_at = payload["created_at"] @author_id = payload["owner"]["id"] @author_profile_pic = payload["owner"]["profile_pic_url"] @author_name = payload["owner"]["username"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ig_scrape-0.0.2 | lib/ig_scrape/comment.rb |