Module: SocialMiner::Instagram::CommentMapper
- Defined in:
- lib/social_miner/instagram/comment_mapper.rb
Class Method Summary collapse
Class Method Details
.map(attrs) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/social_miner/instagram/comment_mapper.rb', line 6 def map(attrs) published_at = Time.at(attrs["created_at"]) if attrs["created_at"] { social_id: attrs.fetch("id"), body: attrs.fetch("text"), published_at: published_at } end |