lib/hermod/xml_node.rb
def rename_attributes(lookup_hash)
      attributes.keys.each do |attribute|
        attributes[lookup_hash.fetch(attribute)] = sanitise_attribute(attributes.delete(attribute))
      end
      self
    end
# Internal: replaces symbol attributes with strings looked up in the provided
# hash
#
# lookup_hash - the hash to use to convert symbols to strings HMRC recognise
#
# Returns self so it can be used in a call chain (This may change in
# future)
replaces symbol attributes with strings looked up in the provided
hash

the hash to use to convert symbols to strings HMRC recognise

Returns self so it can be used in a call chain (This may change in
future)
replaces symbol attributes with strings looked up in the provided hash the hash to use to convert symbols to strings HMRC recognise Returns self so it can be used in a call chain ( This may change in future )
def rename_attributes(lookup_hash)
      attributes.keys.each do |attribute|
        attributes[lookup_hash.fetch(attribute)] = sanitise_attribute(attributes.delete(attribute))
      end
      self
    end
def rename_attributes ( lookup_hash ) attributes . keys . each do | attribute | attributes [ lookup_hash . fetch ( attribute ) ] = sanitise_attribute ( attributes . delete ( attribute ) ) end self end
Internal: replaces symbol attributes with strings looked up in the provided
hash
Internal : replaces symbol attributes with strings looked up in the provided hash
lookup_hash