Class: Vcard::V4_0::PropertyValue::Uri

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) ⇒ Uri

Returns a new instance of Uri.



78
79
80
81
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 78

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

Instance Method Details

#to_hashObject



83
84
85
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 83

def to_hash
  value
end

#to_sObject



87
88
89
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 87

def to_s
  value
end