Class: Calendav::Parsers::EventXML
- Inherits:
-
Object
- Object
- Calendav::Parsers::EventXML
- Defined in:
- lib/calendav/parsers/event_xml.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(element) ⇒ EventXML
constructor
A new instance of EventXML.
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
.call ⇒ Object
6 7 8 |
# File 'lib/calendav/parsers/event_xml.rb', line 6 def self.call(...) new(...).call end |
Instance Method Details
#call ⇒ Object
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 |