Class: Zimbra::FolderService

Inherits:
HandsoapAccountService show all
Defined in:
lib/zimbra/folder.rb

Direct Known Subclasses

CalendarService

Defined Under Namespace

Classes: Builder, Parser

Instance Method Summary collapse

Methods inherited from HandsoapAccountService

#on_create_document, #on_response_document

Methods included from HandsoapAccountUriOverrides

#envelope_namespace, #request_content_type, #uri

Methods included from HandsoapAccountNamespaces

#request_namespaces, #response_namespaces

Methods included from HandsoapErrors

#http_error?, #http_not_found?, #on_after_create_http_request, #on_http_error, #report_error, #soap_fault_not_found?

Instance Method Details

#allObject



36
37
38
39
# File 'lib/zimbra/folder.rb', line 36

def all
  xml = invoke("n2:GetFolderRequest")
  parse_xml_responses(xml)
end

#find_all_by_view(view) ⇒ Object



41
42
43
44
45
46
# File 'lib/zimbra/folder.rb', line 41

def find_all_by_view(view)
  xml = invoke("n2:GetFolderRequest") do |message|
    Builder.find_all_by_view(message, view)
  end
  parse_xml_responses(xml)
end

#parse_xml_responses(xml) ⇒ Object



48
49
50
# File 'lib/zimbra/folder.rb', line 48

def parse_xml_responses(xml)
  Parser.get_all_response(xml)
end