Method: Monban::FieldMap#to_fields

Defined in:
lib/monban/field_map.rb

#to_fieldsArray, Hash

converts params into values that can be passed into a where clause

Returns:

  • (Array)

    if initialized with field_map

  • (Hash)

    if not initialized with field_map

Since:

  • 0.0.15



18
19
20
21
22
23
24
# File 'lib/monban/field_map.rb', line 18

def to_fields
  if @field_map
    params_from_field_map
  else
    params_with_symbolized_keys
  end
end