Class: Vcard::V3_0::PropertyValue::Uri

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

Methods inherited from Vobject::PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Uri

Returns a new instance of Uri.



106
107
108
109
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 106

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

Instance Method Details

#to_hashObject



111
112
113
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 111

def to_hash
  value
end

#to_sObject



115
116
117
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 115

def to_s
  value
end