Class: CnpOnline::LodgingCharge
- Inherits:
-
Object
- Object
- CnpOnline::LodgingCharge
- Includes:
- XML::Mapping
- Defined in:
- lib/XMLFields.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash, name = 'lodgingCharge') ⇒ Object
1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 |
# File 'lib/XMLFields.rb', line 1384 def self.from_hash(hash, name='lodgingCharge') base = hash[name] if(base) this = LodgingCharge.new this.name = base['name'] SchemaValidation.validate_required(this.name,true,name,'name') SchemaValidation.validate_enum(this.name, false, ['RESTAURANT','GIFTSHOP','MINIBAR','TELEPHONE','OTHER','LAUNDRY'], name, 'name') this else nil end end |