Module: Tumblr::Config
- Included in:
- Tumblr
- Defined in:
- lib/tumblr/config.rb
Constant Summary collapse
- VALID_OPTIONS_KEYS =
[ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret ]
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
14 15 16 17 |
# File 'lib/tumblr/config.rb', line 14 def configure yield self self end |
#credentials ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/tumblr/config.rb', line 25 def credentials { :consumer_key => consumer_key, :consumer_secret => consumer_secret, :token => oauth_token, :token_secret => oauth_token_secret } end |
#options ⇒ Object
19 20 21 22 23 |
# File 'lib/tumblr/config.rb', line 19 def = {} VALID_OPTIONS_KEYS.each{ |k| [k] = send(k) } end |