Class: LitleOnline::DeleteDiscount
- Inherits:
-
Object
- Object
- LitleOnline::DeleteDiscount
- Includes:
- XML::Mapping
- Defined in:
- lib/XMLFields.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash, index = 0, name = "deleteDiscount") ⇒ Object
1138 1139 1140 1141 1142 1143 1144 1145 1146 |
# File 'lib/XMLFields.rb', line 1138 def self.from_hash(hash,index=0, name="deleteDiscount") base = hash[name][index] if(base) this = DeleteDiscount.new this.discountCode = base['discountCode'] SchemaValidation.validate_length(this.discountCode, true, 1, 25, name, 'discountCode') this end end |