Class: MicrosoftGraph::Models::AttendanceRecord

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/attendance_record.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a attendance_record

Raises:

  • (StandardError)


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_intervalsObject

Gets the attendanceIntervals property value. List of time periods between joining and leaving a meeting.

Returns:

  • a attendance_interval



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.

Parameters:

  • value

    Value to set for the attendanceIntervals property.

Returns:

  • a void



36
37
38
# File 'lib/models/attendance_record.rb', line 36

def attendance_intervals=(value)
    @attendance_intervals = value
end

#email_addressObject

Gets the emailAddress property value. Email address of the user associated with this attendance record.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the emailAddress property.

Returns:

  • a void



67
68
69
# File 'lib/models/attendance_record.rb', line 67

def email_address=(value)
    @email_address = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#identityObject

Gets the identity property value. Identity of the user associated with this attendance record.

Returns:

  • a identity



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.

Parameters:

  • value

    Value to set for the identity property.

Returns:

  • a void



95
96
97
# File 'lib/models/attendance_record.rb', line 95

def identity=(value)
    @identity = value
end

#roleObject

Gets the role property value. Role of the attendee. Possible values are: None, Attendee, Presenter, and Organizer.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the role property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_secondsObject

Gets the totalAttendanceInSeconds property value. Total duration of the attendances in seconds.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the totalAttendanceInSeconds property.

Returns:

  • a void



139
140
141
# File 'lib/models/attendance_record.rb', line 139

def total_attendance_in_seconds=(value)
    @total_attendance_in_seconds = value
end