Module: ParamsReady::Marshaller::EnumSetMarshallers::ArrayMarshaller

Extended by:
AbstractMarshaller
Defined in:
lib/params_ready/marshaller/enum_set_marshallers.rb

Class Method Summary collapse

Methods included from AbstractMarshaller

canonicalize_collection

Class Method Details

.canonicalize(definition, array, context, validator) ⇒ Object



70
71
72
73
# File 'lib/params_ready/marshaller/enum_set_marshallers.rb', line 70

def self.canonicalize(definition, array, context, validator)
  set = array.to_set
  SetMarshaller.canonicalize(definition, set, context, validator)
end

.marshal(parameter, intent) ⇒ Object



75
76
77
78
# File 'lib/params_ready/marshaller/enum_set_marshallers.rb', line 75

def self.marshal(parameter, intent)
  set = SetMarshaller.marshal(parameter, intent)
  set.to_a
end