Class: Viewpoint::EWS::Types::Attendee

Inherits:
MailboxUser show all
Defined in:
lib/ews/types/attendee.rb

Constant Summary

Constants inherited from MailboxUser

MailboxUser::MAILBOX_KEY_ALIAS, MailboxUser::MAILBOX_KEY_PATHS, MailboxUser::MAILBOX_KEY_TYPES

Constants included from Viewpoint::EWS::Types

KEY_ALIAS, KEY_PATHS, KEY_TYPES, OOF_KEY_ALIAS, OOF_KEY_PATHS, OOF_KEY_TYPES

Constants included from StringUtils

StringUtils::DURATION_RE

Constants included from Viewpoint::EWS

ConnectingSID

Instance Attribute Summary collapse

Attributes included from Viewpoint::EWS::Types

#ews_item

Attributes included from Viewpoint::EWS

#logger

Instance Method Summary collapse

Methods inherited from MailboxUser

#add_delegate!, #get_delegate_info, #get_user_availability, #out_of_office_settings, #update_delegate!

Methods included from Viewpoint::EWS::Types

#auto_deepen?, #deepen!, #ews_methods, #freeze!, #frozen?, #mark_deep!, #method_missing, #methods, #respond_to?, #shallow?, #to_s, #unfreeze!

Methods included from StringUtils

included

Methods included from Viewpoint::EWS

#remove_impersonation, root_logger, #set_impersonation

Constructor Details

#initialize(ews, user_hash) ⇒ Attendee

Returns a new instance of Attendee.



25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/ews/types/attendee.rb', line 25

def initialize(ews, user_hash)
  mbox_user = nil
  user_hash[:attendee][:elems].each do |a|
    if a[:mailbox]
      mbox_user = a[:mailbox][:elems]
    elsif a[:response_type]
      @response_type = a[:response_type][:text]
    elsif a[:last_response_time]
      @last_response_time = a[:last_response_time][:text]
    end
  end
  super(ews, mbox_user)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Viewpoint::EWS::Types

Instance Attribute Details

#last_response_timeObject

Returns the value of attribute last_response_time.



23
24
25
# File 'lib/ews/types/attendee.rb', line 23

def last_response_time
  @last_response_time
end

#response_typeObject

Returns the value of attribute response_type.



23
24
25
# File 'lib/ews/types/attendee.rb', line 23

def response_type
  @response_type
end