Class: MicrosoftGraph::Models::AttendanceRecord
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/attendance_record.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#attendance_intervals ⇒ Object
Gets the attendanceIntervals property value.
-
#attendance_intervals=(value) ⇒ Object
Sets the attendanceIntervals property value.
-
#email_address ⇒ Object
Gets the emailAddress property value.
-
#email_address=(value) ⇒ Object
Sets the emailAddress property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#identity ⇒ Object
Gets the identity property value.
-
#identity=(value) ⇒ Object
Sets the identity property value.
-
#initialize ⇒ Object
constructor
Instantiates a new attendanceRecord and sets the default values.
-
#role ⇒ Object
Gets the role property value.
-
#role=(value) ⇒ Object
Sets the role property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#total_attendance_in_seconds ⇒ Object
Gets the totalAttendanceInSeconds property value.
-
#total_attendance_in_seconds=(value) ⇒ Object
Sets the totalAttendanceInSeconds property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new attendanceRecord and sets the default values.
43 44 45 |
# File 'lib/models/attendance_record.rb', line 43 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
51 52 53 54 |
# File 'lib/models/attendance_record.rb', line 51 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AttendanceRecord.new end |
Instance Method Details
#attendance_intervals ⇒ Object
Gets the attendanceIntervals property value. List of time periods between joining and leaving a meeting.
28 29 30 |
# File 'lib/models/attendance_record.rb', line 28 def attendance_intervals return @attendance_intervals end |
#attendance_intervals=(value) ⇒ Object
Sets the attendanceIntervals property value. List of time periods between joining and leaving a meeting.
36 37 38 |
# File 'lib/models/attendance_record.rb', line 36 def attendance_intervals=(value) @attendance_intervals = value end |
#email_address ⇒ Object
Gets the emailAddress property value. Email address of the user associated with this attendance record.
59 60 61 |
# File 'lib/models/attendance_record.rb', line 59 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. Email address of the user associated with this attendance record.
67 68 69 |
# File 'lib/models/attendance_record.rb', line 67 def email_address=(value) @email_address = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
74 75 76 77 78 79 80 81 82 |
# File 'lib/models/attendance_record.rb', line 74 def get_field_deserializers() return super.merge({ "attendanceIntervals" => lambda {|n| @attendance_intervals = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttendanceInterval.create_from_discriminator_value(pn) }) }, "emailAddress" => lambda {|n| @email_address = n.get_string_value() }, "identity" => lambda {|n| @identity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) }, "role" => lambda {|n| @role = n.get_string_value() }, "totalAttendanceInSeconds" => lambda {|n| @total_attendance_in_seconds = n.get_number_value() }, }) end |
#identity ⇒ Object
Gets the identity property value. Identity of the user associated with this attendance record.
87 88 89 |
# File 'lib/models/attendance_record.rb', line 87 def identity return @identity end |
#identity=(value) ⇒ Object
Sets the identity property value. Identity of the user associated with this attendance record.
95 96 97 |
# File 'lib/models/attendance_record.rb', line 95 def identity=(value) @identity = value end |
#role ⇒ Object
Gets the role property value. Role of the attendee. Possible values are: None, Attendee, Presenter, and Organizer.
102 103 104 |
# File 'lib/models/attendance_record.rb', line 102 def role return @role end |
#role=(value) ⇒ Object
Sets the role property value. Role of the attendee. Possible values are: None, Attendee, Presenter, and Organizer.
110 111 112 |
# File 'lib/models/attendance_record.rb', line 110 def role=(value) @role = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
118 119 120 121 122 123 124 125 126 |
# File 'lib/models/attendance_record.rb', line 118 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("attendanceIntervals", @attendance_intervals) writer.write_string_value("emailAddress", @email_address) writer.write_object_value("identity", @identity) writer.write_string_value("role", @role) writer.write_number_value("totalAttendanceInSeconds", @total_attendance_in_seconds) end |
#total_attendance_in_seconds ⇒ Object
Gets the totalAttendanceInSeconds property value. Total duration of the attendances in seconds.
131 132 133 |
# File 'lib/models/attendance_record.rb', line 131 def total_attendance_in_seconds return @total_attendance_in_seconds end |
#total_attendance_in_seconds=(value) ⇒ Object
Sets the totalAttendanceInSeconds property value. Total duration of the attendances in seconds.
139 140 141 |
# File 'lib/models/attendance_record.rb', line 139 def total_attendance_in_seconds=(value) @total_attendance_in_seconds = value end |