class Vcard::V4_0::PropertyValue::Fivepartname

Public Class Methods

new(val) click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 363
def initialize(val)
  self.value = val
  self.type = "text"
end

Public Instance Methods

to_hash() click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 377
def to_hash
  value
end
to_s() click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 368
def to_s
  ret = Text.listencode value[:surname]
  ret += ";#{Text.listencode value[:givenname]}"
  ret += ";#{Text.listencode value[:additionalname]}"
  ret += ";#{Text.listencode value[:honprefix]}"
  ret += ";#{Text.listencode value[:honsuffix]}"
  ret
end