Class: SabredavClient::XmlRequestBuilder::ProppatchEventsOwner

Inherits:
Base
  • Object
show all
Defined in:
lib/sabredav_client/xml_request_builder/proppatch_events_owner.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#xml

Instance Method Summary collapse

Constructor Details

#initialize(owner) ⇒ ProppatchEventsOwner

Returns a new instance of ProppatchEventsOwner.



7
8
9
10
# File 'lib/sabredav_client/xml_request_builder/proppatch_events_owner.rb', line 7

def initialize(owner)
  @owner = owner
  super()
end

Instance Attribute Details

#ownerObject

Returns the value of attribute owner.



5
6
7
# File 'lib/sabredav_client/xml_request_builder/proppatch_events_owner.rb', line 5

def owner
  @owner
end

Instance Method Details

#to_xmlObject



12
13
14
15
16
17
18
19
20
# File 'lib/sabredav_client/xml_request_builder/proppatch_events_owner.rb', line 12

def to_xml
  xml.d :propertyupdate, CS_NAMESPACES do
    xml.d :set do
      xml.d :prop do
        xml.cs :objectOwner, owner
      end
    end
  end
end