Class: Vcard::V4_0::PropertyValue::Fivepartname
- Inherits:
-
Vobject::PropertyValue
- Object
- Vobject::PropertyValue
- Vcard::V4_0::PropertyValue::Fivepartname
- Defined in:
- lib/vobject/vcard/v4_0/propertyvalue.rb
Instance Attribute Summary
Attributes inherited from Vobject::PropertyValue
Instance Method Summary collapse
-
#initialize(val) ⇒ Fivepartname
constructor
A new instance of Fivepartname.
- #to_hash ⇒ Object
- #to_s ⇒ Object
Methods inherited from Vobject::PropertyValue
Constructor Details
#initialize(val) ⇒ Fivepartname
Returns a new instance of Fivepartname.
363 364 365 366 |
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 363 def initialize(val) self.value = val self.type = "text" end |
Instance Method Details
#to_hash ⇒ Object
377 378 379 |
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 377 def to_hash value end |
#to_s ⇒ Object
368 369 370 371 372 373 374 375 |
# 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 |