module Virtus class Attribute class EmbeddedValue < Object # EmbeddedValue attribute handling OpenStruct primitive or Virtus object # class FromOpenStruct < EmbeddedValue # @api private def coerce(attributes) super or @primitive.new(attributes) end end # class FromOpenStruct end # class EmbeddedValue end # class Attribute end # module Virtus