class Vcard::V4_0::PropertyValue::Gender

Public Class Methods

new(val) click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 316
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 327
def to_hash
  value
end
to_s() click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 321
def to_s
  ret = value[:sex]
  ret << ";#{value[:gender]}" if !value[:gender].empty?
  ret
end