Class: Vcard::V3_0::PropertyValue::Textlist

Inherits:
Vobject::PropertyValue show all
Defined in:
lib/vobject/vcard/v3_0/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from Vobject::PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from Vobject::PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Textlist

Returns a new instance of Textlist.



356
357
358
359
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 356

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

Instance Method Details

#to_hashObject



365
366
367
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 365

def to_hash
  value
end

#to_sObject



361
362
363
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 361

def to_s
  value.map { |m| Text.escape m }.join(",")
end