module Virtus class Attribute class EmbeddedValue < Object # EmbeddedValue attribute handling Struct primitive # class FromStruct < EmbeddedValue # @api private def coerce(attributes) unless attributes.nil? super or @primitive.new(*attributes) end end end # class FromStruct end # class EmbeddedValue end # class Attribute end # module Virtus