lib/tumblr/config.rb in tumblr_client-0.6.11 vs lib/tumblr/config.rb in tumblr_client-0.7.0

- old
+ new

@@ -1,36 +1,34 @@ module Tumblr - module Config VALID_OPTIONS_KEYS = [ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret ] - + attr_accessor *VALID_OPTIONS_KEYS def configure yield self self end - + def options options = {} - VALID_OPTIONS_KEYS.each{ |k| options[k] = send(k) } + 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 + :consumer_key => consumer_key, + :consumer_secret => consumer_secret, + :token => oauth_token, + :token_secret => oauth_token_secret } end end - end