Module: RelicLink::Coh3::Util
- Included in:
- Client
- Defined in:
- lib/relic_link/coh3/util.rb
Overview
Miscellaneous utility and helper methods.
Instance Method Summary collapse
-
#array_params(options) ⇒ Object
Formats the options as JSON (mainly to format arrays correctly for Relic’s API).
Instance Method Details
#array_params(options) ⇒ Object
Formats the options as JSON (mainly to format arrays correctly for Relic’s API).
11 12 13 14 15 |
# File 'lib/relic_link/coh3/util.rb', line 11 def array_params() .transform_values do |value| JSON.generate(Array(value)) end end |