1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
|
# File 'lib/XMLFields.rb', line 1170
def self.from_hash(hash,index=0, name="updateAddOn")
base = hash[name][index]
if(base)
this = UpdateAddOn.new
this.addOnCode = base['addOnCode']
this.name = base['name']
this.amount = base['amount']
this.startDate = base['startDate']
this.endDate = base['endDate']
SchemaValidation.validate_length(this.addOnCode, true, 1, 25, name, 'addOnCode')
SchemaValidation.validate_length(this.name, false, 1, 100, name, "name")
SchemaValidation.validate_size(this.amount,false,0,999999999999,name,'amount')
SchemaValidation.validate_date(this.startDate, false, name, 'startDate')
SchemaValidation.validate_date(this.endDate, false, name, 'endDate')
this
end
end
|