Module: JsonApi::Parameters

Includes:
ActiveSupport::Inflector
Included in:
ActionController::Parameters
Defined in:
lib/jsonapi_parameters/version.rb,
lib/jsonapi_parameters/parameters.rb,
lib/jsonapi_parameters/translator.rb

Constant Summary collapse

VERSION =
'1.0.0'.freeze

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.ensure_underscore_translationObject

Returns the value of attribute ensure_underscore_translation.



6
7
8
# File 'lib/jsonapi_parameters/parameters.rb', line 6

def ensure_underscore_translation
  @ensure_underscore_translation
end

Instance Method Details

#jsonapify(params, naming_convention: :snake) ⇒ Object



6
7
8
# File 'lib/jsonapi_parameters/translator.rb', line 6

def jsonapify(params, naming_convention: :snake)
  jsonapi_translate(params, naming_convention: naming_convention)
end