Class: Kali::Type::CalAddress

Inherits:
URI show all
Defined in:
lib/kali/type/cal_address.rb

Overview

The CAL-ADDRESS type represents a person involved with an event. It must be an email URI.

See tools.ietf.org/html/rfc5545#section-3.3.3

Instance Method Summary collapse

Methods inherited from URI

#decode!, #encode!

Methods inherited from Kali::Type

#decode, #encode

Constructor Details

#initializeCalAddress

Returns a new instance of CalAddress.



9
10
11
# File 'lib/kali/type/cal_address.rb', line 9

def initialize
  super(::URI::MailTo)
end

Instance Method Details

#parametersObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/kali/type/cal_address.rb', line 13

def parameters
  {
    Parameter::CommonName               => :cn,
    Parameter::CalendarUserType         => :cutype,
    Parameter::Delegators               => :delegators,
    Parameter::Delegatees               => :delegatees,
    Parameter::DirectoryEntry           => :dir,
    Parameter::GroupMemberships         => :members,
    Parameter::EventParticipationStatus => :partstat,
    Parameter::ParticipationRole        => :role,
    Parameter::RSVPExpectation          => :rsvp,
    Parameter::SentBy                   => :sent_by
  }
end