Class: Viewpoint::EWS::Types::Attendee
- Inherits:
-
MailboxUser
- Object
- MailboxUser
- Viewpoint::EWS::Types::Attendee
- 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
Constants included from Viewpoint::EWS
Instance Attribute Summary collapse
-
#last_response_time ⇒ Object
Returns the value of attribute last_response_time.
-
#response_type ⇒ Object
Returns the value of attribute response_type.
Attributes included from Viewpoint::EWS::Types
Attributes included from Viewpoint::EWS
Instance Method Summary collapse
-
#initialize(ews, user_hash) ⇒ Attendee
constructor
A new instance of Attendee.
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
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_time ⇒ Object
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_type ⇒ Object
Returns the value of attribute response_type.
23 24 25 |
# File 'lib/ews/types/attendee.rb', line 23 def response_type @response_type end |