class Calendav::Calendar

Constants

ATTRIBUTES

Attributes

attributes[R]

Public Class Methods

from_xml(host, node) click to toggle source
# File lib/calendav/calendar.rb, line 13
def self.from_xml(host, node)
  new(
    {
      url: ContextualURL.call(host, node.xpath("./dav:href").text)
    }.merge(
      Parsers::CalendarXML.call(node)
    )
  )
end
new(attributes = {}) click to toggle source
# File lib/calendav/calendar.rb, line 23
def initialize(attributes = {})
  @attributes = attributes
end

Public Instance Methods

to_h() click to toggle source
# File lib/calendav/calendar.rb, line 31
def to_h
  attributes.dup
end