Class: LinkedinV2::Files::Creator
- Inherits:
-
Object
- Object
- LinkedinV2::Files::Creator
- Defined in:
- lib/linkedin_v2/files/creator.rb
Class Method Summary collapse
-
.call(picture_url) ⇒ Object
picture_url: Image URL (png or jpeg) to send to LinkedIn.
Class Method Details
.call(picture_url) ⇒ Object
picture_url: Image URL (png or jpeg) to send to LinkedIn
5 6 7 8 9 |
# File 'lib/linkedin_v2/files/creator.rb', line 5 def self.call(picture_url) tempfile = Down.download(picture_url) File.new(tempfile.path) end |