Class: Jat::Plugins::JsonApi::Params::Fields

Inherits:
Object
  • Object
show all
Defined in:
lib/jat/plugins/json_api/lib/params/fields.rb,
lib/jat/plugins/json_api/lib/params/fields/parse.rb,
lib/jat/plugins/json_api/lib/params/fields/validate.rb

Defined Under Namespace

Classes: Parse, Validate

Class Method Summary collapse

Class Method Details

.call(jat, fields) ⇒ Object

returns Hash { type => [key1, key2] }



13
14
15
16
17
# File 'lib/jat/plugins/json_api/lib/params/fields.rb', line 13

def call(jat, fields)
  parsed_fields = Parse.call(fields)
  Validate.call(jat, parsed_fields)
  parsed_fields
end