Class: Calendav::Parsers::EventXML

Inherits:
Object
  • Object
show all
Defined in:
lib/calendav/parsers/event_xml.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ EventXML

Returns a new instance of EventXML.



10
11
12
# File 'lib/calendav/parsers/event_xml.rb', line 10

def initialize(element)
  @element = element
end

Class Method Details

.callObject



6
7
8
# File 'lib/calendav/parsers/event_xml.rb', line 6

def self.call(...)
  new(...).call
end

Instance Method Details

#callObject



14
15
16
17
18
19
# File 'lib/calendav/parsers/event_xml.rb', line 14

def call
  {
    calendar_data: value(".//caldav:calendar-data"),
    etag: value(".//dav:getetag")
  }
end