Class: Zimbra::AppointmentService::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/zimbra/appointment.rb

Class Method Summary collapse

Class Method Details

.appointment_response(node) ⇒ Object



267
268
269
270
# File 'lib/zimbra/appointment.rb', line 267

def appointment_response(node)
  # It's much easier to deal with this as a hash
  Zimbra::Hash.from_xml(node.to_xml)
end

.get_search_response(response) ⇒ Object



261
262
263
264
265
# File 'lib/zimbra/appointment.rb', line 261

def get_search_response(response)
  (response/"//n2:appt").collect do |node|
    Zimbra::Hash.from_xml(node.to_xml)
  end
end