Sha256: 718366d66f220a8bb7dced9b03b7f09f5bc5fb0d4e55cff40bcdcbab668a22d3
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
require_relative 'json_base' require 'uri' module CorePro module Models class ModelBase < JsonBase attr_accessor :requestId def escape(val) if val.to_s.empty? '' else URI::escape(val) end end def to_s vars = self.instance_variables.map{|v| "#{v}=#{instance_variable_get(v).inspect}" }.join(", ") "<#{self.class}: #{vars}>" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems