709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
|
# File 'lib/XMLFields.rb', line 709
def self.from_hash(hash, name='mpos')
base = hash[name]
if(base)
this = Mpos.new
this.ksn = base['ksn']
this.formatId = base['formatId']
this.encryptedTrack = base['encryptedTrack']
this.track1Status = base['track1Status']
this.track2Status = base['track2Status']
SchemaValidation.validate_length(this.ksn, true, 1, 1028 , name, 'ksn')
SchemaValidation.validate_length(this.formatId, true, 1, 1028, name, 'formatId')
SchemaValidation.validate_length(this.encryptedTrack, true, 1, 1028, name, 'encryptedTrack')
SchemaValidation.validate_size(this.track1Status, true, 0, 1028, name, 'track1Status')
SchemaValidation.validate_size(this.track2Status, true, 0, 1028, name, 'track2Status')
this
end
end
|