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



306
307
308
309
# File 'lib/zimbra/appointment.rb', line 306

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



300
301
302
303
304
# File 'lib/zimbra/appointment.rb', line 300

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