Sha256: 5196076172ab54f8220ec42e27f2c5e3d8fe28ffe3bbae106c55736ce631f4db
Contents?: true
Size: 607 Bytes
Versions: 4
Compression:
Stored size: 607 Bytes
Contents
module Tumblr module Config VALID_OPTIONS_KEYS = [ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret, :client ] attr_accessor *VALID_OPTIONS_KEYS def configure yield self self end def options options = {} VALID_OPTIONS_KEYS.each{ |pname| options[pname] = send(pname) } options end def credentials { :consumer_key => consumer_key, :consumer_secret => consumer_secret, :token => oauth_token, :token_secret => oauth_token_secret } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tumblr_client-0.8.4 | lib/tumblr/config.rb |
tumblr_client-0.8.3 | lib/tumblr/config.rb |
tumblr_client-0.8.2 | lib/tumblr/config.rb |
tumblr_client-0.8.1 | lib/tumblr/config.rb |