ptConfig
class
class ptConfig {
ptConfig() {
hosts = new List<ptHost>();
}
String servername;
List<ptHost> hosts;
String logPath;
Map toJson() {
Map ret = new Map();
ret['servername']=servername;
ret['hosts']=hosts;
return ret;
}
}
Constructors
new ptConfig() #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful
through their identity. An Object instance is equal to itself
only.
ptConfig() {
hosts = new List<ptHost>();
}
Methods
Map toJson() #
Map toJson() {
Map ret = new Map();
ret['servername']=servername;
ret['hosts']=hosts;
return ret;
}