lib/mantisrb/session.rb
def remove_xsi_type(hash)
      if hash.class == Array && hash[0].class == Hash
        return hash.map { |h| delete_xsi_type(h) }
      elsif hash.class == Hash
        return delete_xsi_type(hash)
      end
      return hash
    end
# Removes the :"@xsi:type" key that is present in most responses
# from Mantis Connect.  Unless you need it, this API should be mapping
# those for you for most use-cases.
# @param [Hash] hash Hash response from {#response}
# @return [Hash]
Removes the :"@xsi:type" key that is present in most responses
from Mantis Connect.  Unless you need it, this API should be mapping
those for you for most use-cases.
Removes the : " @xsi : type " key that is present in most responses from Mantis Connect . Unless you need it this API should be mapping those for you for most use - cases .
def remove_xsi_type(hash)
      if hash.class == Array && hash[0].class == Hash
        return hash.map { |h| delete_xsi_type(h) }
      elsif hash.class == Hash
        return delete_xsi_type(hash)
      end
      return hash
    end
def remove_xsi_type ( hash ) if hash . class == Array && hash [ 0 ] . class == Hash return hash . map { | h | delete_xsi_type ( h ) } elsif hash . class == Hash return delete_xsi_type ( hash ) end return hash end
Removes the :"@xsi:type" key that is present in most responses
from Mantis Connect.
Removes the : " @xsi : type " key that is present in most responses from Mantis Connect .
None
Hash
hash
hash Hash response from {#response}
hash Hash response from { #response }