Class: Vobject::Vcalendar::PropertyValue::Datetimelist

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) ⇒ Datetimelist

Returns a new instance of Datetimelist.



494
495
496
497
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 494

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

Instance Method Details

#to_hashObject



503
504
505
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 503

def to_hash
  value.map(&:to_hash)
end

#to_sObject



499
500
501
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 499

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