lib/axlsx/util/serialized_attributes.rb
# serializes the instance values of the defining object based on the 
# list of serializable attributes.
# @param [String] str The string instance to append this
# serialization to.
# @param [Hash] additional_attributes An option key value hash for
# defining values that are not serializable attributes list.
serializes the instance values of the defining object based on the
list of serializable attributes.
serializes the instance values of the defining object based on the list of serializable attributes .
def serialized_attributes(str = '', additional_attributes = {})
      key_value_pairs = instance_values
      key_value_pairs.each do |key, value|
        key_value_pairs.delete(key) if value == nil
        key_value_pairs.delete(key) unless self.class.xml_attributes.include?(key.to_sym)
      end
      key_value_pairs.merge! additional_attributes
      key_value_pairs.each do |key, value|
        str << "#{Axlsx.camel(key, false)}=\"#{value}\" "
      end
      str
    end
def serialized_attributes ( str = '' , additional_attributes = { } ) key_value_pairs = instance_values key_value_pairs . each do | key , value | key_value_pairs . delete ( key ) if value == nil key_value_pairs . delete ( key ) unless self . class . xml_attributes . include? ( key . to_sym ) end key_value_pairs . merge! additional_attributes key_value_pairs . each do | key , value | str << "#{Axlsx.camel(key, false)}=\"#{value}\" " end str end
serializes the instance values of the defining object based on the
list of serializable attributes.
serializes the instance values of the defining object based on the list of serializable attributes .
str
additional_attributes
additional_attributes An option key value hash for defining values that are not serializable attributes list.
additional_attributes An option key value hash for defining values that are not serializable attributes list .