Class: Arstotzka::Config
- Inherits:
-
Sinclair::Config
- Object
- Sinclair::Config
- Arstotzka::Config
- Defined in:
- lib/arstotzka/config.rb
Overview
Arstotzka configuration
Configuration of Arstotzka is done through Arstotzka.configure
which configures using Config by Sinclar::Configurable
Constant Summary collapse
- DEFAULT_CONFIGS =
Default values for Arstotzka::ClassMethods#expose
{ after: false, after_each: nil, cached: false, case: :lower_camel, compact: false, default: nil, flatten: false, json: :json, klass: nil, type: :none, before: nil }.freeze
Instance Method Summary collapse
-
#options(options_hash = {}) ⇒ Options
private
Returns a new instance of Options.
Instance Method Details
#options(options_hash = {}) ⇒ Options
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Options
the new instance will have it’s values as a merge from configuration and given options_hash
103 104 105 106 107 108 109 |
# File 'lib/arstotzka/config.rb', line 103 def ( = {}) Options.new( to_hash.symbolize_keys.merge( .symbolize_keys ) ) end |