Class: Vobject::Vcalendar::PropertyValue::Datelist

Inherits:
PropertyValue
  • Object
show all
Defined in:
lib/vobject/vcalendar/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Datelist

Returns a new instance of Datelist.



479
480
481
482
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 479

def initialize(val)
  self.value = val
  self.type = "datelist"
end

Instance Method Details

#to_hashObject



488
489
490
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 488

def to_hash
  value.map(&:to_hash)
end

#to_sObject



484
485
486
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 484

def to_s
  value.map(&:to_s).join(",")
end