Class: Vcard::V4_0::PropertyValue::Clientpidmap

Inherits:
Text 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 Text

escape, escape_component, listencode

Methods inherited from Vobject::PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Clientpidmap

Returns a new instance of Clientpidmap.



93
94
95
96
97
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 93

def initialize(val)
  self.value = val
  # not explicitly specified in spec
  self.type = "text"
end

Instance Method Details

#to_hashObject



103
104
105
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 103

def to_hash
  value
end

#to_sObject



99
100
101
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 99

def to_s
  "#{value[:pid]};#{value[:uri]}"
end