Module: Magiq
- Defined in:
- lib/magiq.rb,
lib/magiq/param.rb,
lib/magiq/query.rb,
lib/magiq/types.rb,
lib/magiq/utils.rb,
lib/magiq/builder.rb,
lib/magiq/version.rb
Defined Under Namespace
Modules: Types, Utils
Classes: BadParamError, Builder, Error, Param, ParamsError, Query
Constant Summary
collapse
- DEFAULT_CONFIG =
OpenStruct.new(
array_param_limit: 150,
default_page_size: 50,
max_page_size: 250,
min_page_size: 1
)
- VERSION =
'0.1.0'
Class Method Summary
collapse
Class Method Details
.[](key) ⇒ Object
18
19
20
|
# File 'lib/magiq.rb', line 18
def [](key)
config[key]
end
|
.config ⇒ Object
22
23
24
|
# File 'lib/magiq.rb', line 22
def config
@config ||= DEFAULT_CONFIG.dup
end
|
26
27
28
|
# File 'lib/magiq.rb', line 26
def configure
yield(config)
end
|