class YmlBuilder::Common
Public Class Methods
convert_key(key)
click to toggle source
# File lib/yml_builder/common.rb, line 13 def self.convert_key(key) return 'currencyId' if key == :currency_id return 'categoryId' if key == :category_id key.to_s end
encode_special_chars(out)
click to toggle source
# File lib/yml_builder/common.rb, line 4 def self.encode_special_chars(out) return out.to_s.gsub(/[\"\&\>\<\']/, '"' => '"', '&' => '&', '>' => '>', '<' => '<', "'" => ''') end