Module: SoberSwag::Serializer
- Defined in:
- lib/sober_swag/serializer.rb,
lib/sober_swag/serializer/base.rb,
lib/sober_swag/serializer/hash.rb,
lib/sober_swag/serializer/meta.rb,
lib/sober_swag/serializer/array.rb,
lib/sober_swag/serializer/mapped.rb,
lib/sober_swag/serializer/optional.rb,
lib/sober_swag/serializer/primitive.rb,
lib/sober_swag/serializer/field_list.rb,
lib/sober_swag/serializer/conditional.rb
Overview
Container module for serializers. The interface for these is described in Base.
Defined Under Namespace
Classes: Array, Base, Conditional, FieldList, Hash, Mapped, Meta, Optional, Primitive
Class Method Summary collapse
-
.primitive(contained) ⇒ Object
Use a "Primitive" serializer, which does not actually do any type-changing, and instead passes in values raw.
Class Method Details
.primitive(contained) ⇒ Object
Use a "Primitive" serializer, which does not actually do any type-changing, and instead passes in values raw.
22 23 24 |
# File 'lib/sober_swag/serializer.rb', line 22 def primitive(contained) SoberSwag::Serializer::Primitive.new(contained) end |