Module: Api::DefaultOptions
- Included in:
- Default
- Defined in:
- lib/api/default_options.rb
Overview
Module to include in Default modules of your API toolkit
Instance Method Summary collapse
-
#options ⇒ Hash
Configuration options.
Instance Method Details
#options ⇒ Hash
Configuration options
8 9 10 11 |
# File 'lib/api/default_options.rb', line 8 def Hash[Api::Configurable.keys.select { |key| respond_to?(key) } .map { |key| [key, send(key)] }] end |