Module: Bitly::Config
- Included in:
- Bitly
- Defined in:
- lib/bitly/config.rb
Constant Summary collapse
- OPTION_KEYS =
bitly client options
[ :login, :api_key, :api_version, :timeout ]
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
14 15 16 17 |
# File 'lib/bitly/config.rb', line 14 def configure yield self self end |
#options ⇒ Object
19 20 21 22 23 |
# File 'lib/bitly/config.rb', line 19 def = {} OPTION_KEYS.each{|key| [key] = send(key)} end |