Sha256: b6f34441ad88a5aef9df8144159cd34fa7508eaa3c5fd01f3ce7d27b65c8d447
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
module PictureFrom class FacebookPicture def initialize @facebook_crawler = Crawlers::FacebookCrawler.new @facebook_api = Apis::FacebookApi.new end def picture_from_username(username) @facebook_api.image_url_by_username(username) end def picture_from_user_info(user_info) username = @facebook_crawler.image_url_by_user_info(user_info) picture_from_username(username) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picture_from-1.0.1 | lib/picture_from/facebook_picture.rb |
picture_from-1.0.0 | lib/picture_from/facebook_picture.rb |