Module: Viewpoint::EWS::Model

Included in:
Attachment, Attendee, GenericFolder, Item, MailboxUser
Defined in:
lib/model/model.rb

Overview

This is the base model Module for shared code among all Model classes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ews_methodsObject (readonly)

These are convenience methods to quickly create instance methods for the various Model types when passed a Hash from the SOAP parser. These functions depend on each model type saving the passed Hash in an instance variable called @ews_item.



33
34
35
# File 'lib/model/model.rb', line 33

def ews_methods
  @ews_methods
end

#ews_methods_undefObject (readonly)

These are convenience methods to quickly create instance methods for the various Model types when passed a Hash from the SOAP parser. These functions depend on each model type saving the passed Hash in an instance variable called @ews_item.



33
34
35
# File 'lib/model/model.rb', line 33

def ews_methods_undef
  @ews_methods_undef
end

Instance Method Details

#initializeObject



35
36
37
38
39
40
# File 'lib/model/model.rb', line 35

def initialize
  # Defined EWS methods
  @ews_methods = []
  # Undefined EWS methods
  @ews_methods_undef = []
end