class PpmToGdl::MPpm
MPpm
class describes a PPM object
Attributes
alias[RW]
customer[RW]
dataType[RW]
id[RW]
name[RW]
varType[RW]
verbose[RW]
Public Class Methods
new(name, attributes, verbose=false)
click to toggle source
# File lib/ppmtogdl/ppmcontextobjs.rb, line 22 def initialize(name, attributes, verbose=false) $LOG.debug "Ppm::initialize( #{name}, #{attributes} )" @verbose = verbose @name = name @alias = attributes["Name"] @varType = attributes["Type"] #@dataType = "UNKNOWN" @dataType = attributes["Datatype"] #if (attributes.has_key?("Datatype")) @customer = attributes["Customer"] if(@verbose) attributes.each do |k, v| puts "Attrib[ #{k} ]: #{v}" end end case @varType when 'APM' @varType = "app" when 'CRP' @varType = "crd" when 'PRD' @varType = "prd" end # varType case @dataType when 'Boolean' @dataType = "boolean" when 'Date' @dataType = "date" when 'Money' @dataType = "money" when 'Numeric' @dataType = "numeric" when 'Percentage' @dataType = "percentage" when 'Text' @dataType = "text" when 'DateTime' @dataType = "datetime" end # dataType end