Module: Pixabay::Config
- Included in:
- Pixabay
- Defined in:
- lib/pixabay/config.rb
Constant Summary collapse
- OPTION_KEYS =
pixabay client options
[ :api_key, :timeout, ]
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
11 12 13 14 |
# File 'lib/pixabay/config.rb', line 11 def configure yield self self end |
#options ⇒ Object
16 17 18 19 20 |
# File 'lib/pixabay/config.rb', line 16 def = {} OPTION_KEYS.each{ |key| [key] = send(key) } end |