module Sharepoint::VtiBin

Public Class Methods

translate_field_names(input) click to toggle source
# File lib/sharepoint-lists.rb, line 66
def self.translate_field_names input
  return input unless defined? VtiDisplayNameDictionary
  hash = Hash.new
  input.keys.each do |key|
    if VtiDisplayNameDictionary.keys.include? key
      hash[VtiDisplayNameDictionary[key]] = input[key]
    else
      hash[key] = input[key]
    end
  end
  hash
end