Class: Postwill::Providers::Tumblr

Inherits:
Base
  • Object
show all
Defined in:
lib/postwill/providers/tumblr.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(options) ⇒ Tumblr

Returns a new instance of Tumblr.



4
5
6
7
8
9
10
11
# File 'lib/postwill/providers/tumblr.rb', line 4

def initialize(options)
  @client ||= ::Tumblr::Client.new(
    consumer_key: credentials[:consumer_key],
    consumer_secret: credentials[:consumer_secret],
    oauth_token: options[:access_token],
    oauth_token_secret: options[:access_token_secret]
  )
end