class JsonbAccessor::NestedBase

def initialize(attributes = {})

def initialize(attributes = {})
  self.attributes = {}.with_indifferent_access
  nested_classes.keys.each do |key|
    send("#{key}=", nil)
  end
  attributes.each do |name, value|
    send("#{name}=", value)
  end
end