module Tumblr::Config
Constants
- VALID_OPTIONS_KEYS
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/tumblr/config.rb, line 15 def configure yield self self end
credentials()
click to toggle source
# File lib/tumblr/config.rb, line 26 def credentials { :consumer_key => consumer_key, :consumer_secret => consumer_secret, :token => oauth_token, :token_secret => oauth_token_secret } end
options()
click to toggle source
# File lib/tumblr/config.rb, line 20 def options options = {} VALID_OPTIONS_KEYS.each{ |pname| options[pname] = send(pname) } options end