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

Instance Method Details

#optionsHash

Configuration options

Returns:

  • (Hash)


8
9
10
11
# File 'lib/api/default_options.rb', line 8

def options
  Hash[Api::Configurable.keys.select { |key| respond_to?(key) }
           .map { |key| [key, send(key)] }]
end