Class: LitleOnline::HealthcareIIAS

Inherits:
Object
  • Object
show all
Includes:
XML::Mapping
Defined in:
lib/XMLFields.rb

Class Method Summary collapse

Class Method Details

.from_hash(hash, name = 'healthcareIIAS') ⇒ Object



429
430
431
432
433
434
435
436
437
438
439
440
# File 'lib/XMLFields.rb', line 429

def self.from_hash(hash, name='healthcareIIAS')
  base = hash[name]
  if(base)
    this = HealthcareIIAS.new
    this.healthcareAmounts = HealthcareAmounts.from_hash(base)
    this.iiasFlag = base['IIASFlag']
    SchemaValidation.validate_enum(this.iiasFlag, true, ['Y'], name, 'IIASFlag')
    this
  else
    nil
  end
end