Class: Exchanger::GetUserAvailability::Response

Inherits:
Operation::Response show all
Defined in:
lib/exchanger/operations/get_user_availability.rb

Instance Attribute Summary

Attributes inherited from Operation::Response

#body, #status

Instance Method Summary collapse

Methods inherited from Operation::Response

#code, #initialize, #parse_response_message, #parse_soap_errors, #to_xml

Constructor Details

This class inherits a constructor from Exchanger::Operation::Response

Instance Method Details

#itemsObject



83
84
85
86
87
88
# File 'lib/exchanger/operations/get_user_availability.rb', line 83

def items
  to_xml.xpath(".//t:CalendarEventArray", NS).children.map do |node|
    item_klass = Exchanger.const_get(node.name)
    item_klass.new_from_xml(node)
  end
end