Class: IControl::Base::SequenceSequence

Inherits:
Object
  • Object
show all
Defined in:
lib/icontrol/base/sequence.rb

Class Method Summary collapse

Class Method Details

.from_soap(xml) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/icontrol/base/sequence.rb', line 74

def self.from_soap(xml)
  return nil unless xml[:item]
  xml[:item][:type] = "A:Array"
  object = [Mappings.map_object(xml[:item])].flatten
  return nil if object.compact.length == 0
  return object
end