class Representable::XML::Binding::AttributeHash

Public Instance Methods

deserialize_from(node) click to toggle source

FIXME: this is not tested!

# File lib/representable/xml/binding.rb, line 134
def deserialize_from(node)
  HashDeserializer.new(self).deserialize(node)
end
write(parent, value, as) click to toggle source

DISCUSS: use AttributeBinding here?

# File lib/representable/xml/binding.rb, line 126
def write(parent, value, as)  # DISCUSS: is it correct overriding #write here?
  value.collect do |k, v|
    parent[k] = v.to_s
  end
  parent
end