class Vcard::V4_0::PropertyValue::Address
Public Class Methods
new(val)
click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 383 def initialize(val) self.value = val self.type = "text" end
Public Instance Methods
to_hash()
click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 399 def to_hash value end
to_s()
click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 388 def to_s ret = Text.listencode value[:pobox] ret += ";#{Text.listencode value[:ext]}" ret += ";#{Text.listencode value[:street]}" ret += ";#{Text.listencode value[:locality]}" ret += ";#{Text.listencode value[:region]}" ret += ";#{Text.listencode value[:code]}" ret += ";#{Text.listencode value[:country]}" ret end