Class: MicrosoftGraph::Models::RoomList
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/room_list.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
-
#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.
-
#initialize ⇒ Object
constructor
Instantiates a new roomList and sets the default values.
-
#rooms ⇒ Object
Gets the rooms property value.
-
#rooms=(value) ⇒ Object
Sets the rooms property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Place
#address, #address=, #display_name, #display_name=, #geo_coordinates, #geo_coordinates=, #phone, #phone=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new roomList and sets the default values.
19 20 21 22 |
# File 'lib/models/room_list.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.roomList" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 |
# File 'lib/models/room_list.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RoomList.new end |
Instance Method Details
#email_address ⇒ Object
Gets the emailAddress property value. The email address of the room list.
36 37 38 |
# File 'lib/models/room_list.rb', line 36 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. The email address of the room list.
44 45 46 |
# File 'lib/models/room_list.rb', line 44 def email_address=(value) @email_address = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
51 52 53 54 55 56 |
# File 'lib/models/room_list.rb', line 51 def get_field_deserializers() return super.merge({ "emailAddress" => lambda {|n| @email_address = n.get_string_value() }, "rooms" => lambda {|n| @rooms = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Room.create_from_discriminator_value(pn) }) }, }) end |
#rooms ⇒ Object
Gets the rooms property value. The rooms property
61 62 63 |
# File 'lib/models/room_list.rb', line 61 def rooms return @rooms end |
#rooms=(value) ⇒ Object
Sets the rooms property value. The rooms property
69 70 71 |
# File 'lib/models/room_list.rb', line 69 def rooms=(value) @rooms = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/room_list.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("emailAddress", @email_address) writer.write_collection_of_object_values("rooms", @rooms) end |