Class: Vcard::V4_0::PropertyValue::Org
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#<=>, #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_hash ⇒ Object
357
358
359
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 357
def to_hash
value
end
|
#to_s ⇒ Object
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
|