Class: LitleOnline::RecyclingRequest
- Inherits:
-
Object
- Object
- LitleOnline::RecyclingRequest
- Includes:
- XML::Mapping
- Defined in:
- lib/XMLFields.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash, name = 'recyclingRequest') ⇒ Object
977 978 979 980 981 982 983 984 985 986 987 988 989 |
# File 'lib/XMLFields.rb', line 977 def self.from_hash(hash, name='recyclingRequest') base = hash[name] if(base) this = RecyclingRequest.new this.recycleBy = base['recycleBy'] this.recycleId = base['recycleId'] SchemaValidation.validate_enum(this.recycleBy, false, ['Merchant','Litle','None'], name, 'recycleBy') SchemaValidation.validate_length(this.recycleId, false, 1, 25, name, 'recycleId') this else nil end end |