lib/event_inventory/format_helper.rb
# Formats keys for use in parsing responses and building query strings.
Formats keys for use in parsing responses and building query strings.
Formats keys for use in parsing responses and building query strings .
def format_key(key, old_format=false)
      key = key.to_s
      key.upcase! if key == 'id'
      key.gsub!(/_id$/, '_ID')
      key.gsub!(/_url$/, '_URL')
      old_format ? key.upcase : key.camelize
    end
def format_key ( key , old_format = false ) key = key . to_s key . upcase! if key == 'id' key . gsub! ( / _id$ / , '_ID' ) key . gsub! ( / _url$ / , '_URL' ) old_format ? key . upcase : key . camelize end
Formats keys for use in parsing responses and building query strings.
Formats keys for use in parsing responses and building query strings .
key
<not_specific>
old_format
<not_specific>