class Tilia::VObject::Property::VCard::Date

Date property.

This object encodes vCard DATE values.

Public Instance Methods

date_time=(dt) click to toggle source

Sets the property as a DateTime object.

@param [DateTimeInterface] dt

@return [void]

# File lib/tilia/v_object/property/v_card/date.rb, line 24
def date_time=(dt)
  @value = dt.strftime('%Y%m%d')
end
value_type() click to toggle source

Returns the type of value.

This corresponds to the VALUE= parameter. Every property also has a 'default' valueType.

@return [String]

# File lib/tilia/v_object/property/v_card/date.rb, line 15
def value_type
  'DATE'
end