class Tilia::VObject::Property::ICalendar::CalAddress
CalAddress
property.
This object encodes CAL-ADDRESS values, as defined in rfc5545
Attributes
delimiter[RW]
In case this is a multi-value property. This string will be used as a delimiter.
@return [String, nil]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/tilia/v_object/property/i_calendar/cal_address.rb, line 41 def initialize(*args) super(*args) @delimiter = nil end
Public Instance Methods
normalized_value()
click to toggle source
This returns a normalized form of the value.
This is primarily used right now to turn mixed-cased schemes in user uris to lower-case.
Evolution in particular tends to encode mailto: as MAILTO:.
@return [String]
# File lib/tilia/v_object/property/i_calendar/cal_address.rb, line 33 def normalized_value input = value return input unless input.index(':') (schema, everything_else) = input.split(':', 2) "#{schema.downcase}:#{everything_else}" 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/i_calendar/cal_address.rb, line 21 def value_type 'CAL-ADDRESS' end