Class: ParamsReady::Marshaller::StructMarshallers

Inherits:
Object
  • Object
show all
Defined in:
lib/params_ready/marshaller/struct_marshallers.rb

Defined Under Namespace

Modules: AbstractMarshaller, Base64Marshaller, StructMarshaller

Class Method Summary collapse

Class Method Details

.collectionObject



88
89
90
91
92
93
94
95
96
97
# File 'lib/params_ready/marshaller/struct_marshallers.rb', line 88

def self.collection
  @collection ||= begin
    c = ClassCollection.new Hash
    c.add_instance Hash, StructMarshaller
    c.add_factory :base64, Base64Marshaller
    c.default!(Hash)
    c.freeze
    c
  end
end