Class: Vcard::V4_0::PropertyValue::Org

Inherits:
Vobject::PropertyValue show all
Defined in:
lib/vobject/vcard/v4_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) ⇒ Org

Returns a new instance of Org.



348
349
350
351
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 348

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

Instance Method Details

#to_hashObject



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

def to_hash
  value
end

#to_sObject



353
354
355
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 353

def to_s
  value.map { |m| Text.escape_component m }.join(";")
end