906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
|
# File 'lib/XMLFields.rb', line 906
def self.from_hash(hash, name='merchantData')
base = hash[name]
if(base)
this = MerchantData.new
this.campaign = base['campaign']
this.affiliate = base['affiliate']
this.merchantGroupingId = base['merchantGroupingId']
SchemaValidation.validate_length(this.campaign, false, 1, 25, name, 'campaign')
SchemaValidation.validate_length(this.affiliate, false, 1, 25, name, 'affiliate')
SchemaValidation.validate_length(this.merchantGroupingId, false, 1, 25, name, 'merchantGroupingId')
this
else
nil
end
end
|