Class: LitleOnline::DeleteAddOn
- Inherits:
-
Object
- Object
- LitleOnline::DeleteAddOn
- Includes:
- XML::Mapping
- Defined in:
- lib/XMLFields.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash, index = 0, name = "updateDiscount") ⇒ Object
1152 1153 1154 1155 1156 1157 1158 1159 1160 |
# File 'lib/XMLFields.rb', line 1152 def self.from_hash(hash,index=0, name="updateDiscount") base = hash[name][index] if(base) this = DeleteAddOn.new this.addOnCode = base['addOnCode'] SchemaValidation.validate_length(this.addOnCode, true, 1, 25, name, 'addOnCode') this end end |