884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
|
# File 'lib/XMLFields.rb', line 884
def self.from_hash(hash, name='filtering')
base = hash[name]
if(base)
this = Filtering.new
this.prepaid = base['prepaid']
this.international = base['international']
this.chargeback = base['chargeback']
SchemaValidation.validate_boolean(this.prepaid, false, name, 'prepaid')
SchemaValidation.validate_boolean(this.international, false, name, 'international')
SchemaValidation.validate_boolean(this.chargeback, false, name, 'chargeback')
this
else
nil
end
end
|