class Postwill::Providers::Instagram

Public Class Methods

new(options) click to toggle source
# File lib/postwill/providers/instagram.rb, line 4
def initialize(options)
  @client ||= ::InstagramUpload::Client.new(options[:username], options[:password])
end

Private Instance Methods

post(options) click to toggle source
# File lib/postwill/providers/instagram.rb, line 10
def post(options)
  image = options[:image]
  text = options[:text]

  client.upload_photo(image, text)
end