Class: Vcard::V3_0::PropertyValue::Phonenumber

Inherits:
Text show all
Defined in:
lib/vobject/vcard/v3_0/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from Vobject::PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from Text

escape, listencode, #to_s

Methods inherited from Vobject::PropertyValue

#<=>, #name, #to_norm, #to_s

Constructor Details

#initialize(val) ⇒ Phonenumber

Returns a new instance of Phonenumber.



95
96
97
98
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 95

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

Instance Method Details

#to_hashObject



100
101
102
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 100

def to_hash
  value
end