class Vobject::Vcalendar::PropertyValue::Periodlist
Public Class Methods
new(val)
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 459 def initialize(val) self.value = val self.type = "periodlist" end
Public Instance Methods
to_hash()
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 473 def to_hash value.map { |m| m.each { |k, v| m[k] = v.to_hash } } end
to_s()
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 464 def to_s value.map do |m| ret = m[:start].to_s + "/" ret += m[:end].to_s if m.has_key? :end ret += m[:duration].to_s if m.has_key? :duration ret end.join(",") end