class Representable::XML::Binding::AttributeHash
Public Instance Methods
Source
# File lib/representable/xml/binding.rb, line 134 def deserialize_from(node) HashDeserializer.new(self).deserialize(node) end
FIXME: this is not tested!
Source
# 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
DISCUSS: use AttributeBinding here?