Class: MicrosoftGraph::Models::Room
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/room.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
-
#audio_device_name ⇒ Object
Gets the audioDeviceName property value.
-
#audio_device_name=(value) ⇒ Object
Sets the audioDeviceName property value.
-
#booking_type ⇒ Object
Gets the bookingType property value.
-
#booking_type=(value) ⇒ Object
Sets the bookingType property value.
-
#building ⇒ Object
Gets the building property value.
-
#building=(value) ⇒ Object
Sets the building property value.
-
#capacity ⇒ Object
Gets the capacity property value.
-
#capacity=(value) ⇒ Object
Sets the capacity property value.
-
#display_device_name ⇒ Object
Gets the displayDeviceName property value.
-
#display_device_name=(value) ⇒ Object
Sets the displayDeviceName property value.
-
#email_address ⇒ Object
Gets the emailAddress property value.
-
#email_address=(value) ⇒ Object
Sets the emailAddress property value.
-
#floor_label ⇒ Object
Gets the floorLabel property value.
-
#floor_label=(value) ⇒ Object
Sets the floorLabel property value.
-
#floor_number ⇒ Object
Gets the floorNumber property value.
-
#floor_number=(value) ⇒ Object
Sets the floorNumber property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new room and sets the default values.
-
#is_wheel_chair_accessible ⇒ Object
Gets the isWheelChairAccessible property value.
-
#is_wheel_chair_accessible=(value) ⇒ Object
Sets the isWheelChairAccessible property value.
-
#label ⇒ Object
Gets the label property value.
-
#label=(value) ⇒ Object
Sets the label property value.
-
#nickname ⇒ Object
Gets the nickname property value.
-
#nickname=(value) ⇒ Object
Sets the nickname property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tags ⇒ Object
Gets the tags property value.
-
#tags=(value) ⇒ Object
Sets the tags property value.
-
#video_device_name ⇒ Object
Gets the videoDeviceName property value.
-
#video_device_name=(value) ⇒ Object
Sets the videoDeviceName property value.
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 room and sets the default values.
112 113 114 115 |
# File 'lib/models/room.rb', line 112 def initialize() super @odata_type = "#microsoft.graph.room" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
121 122 123 124 |
# File 'lib/models/room.rb', line 121 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Room.new end |
Instance Method Details
#audio_device_name ⇒ Object
Gets the audioDeviceName property value. Specifies the name of the audio device in the room.
52 53 54 |
# File 'lib/models/room.rb', line 52 def audio_device_name return @audio_device_name end |
#audio_device_name=(value) ⇒ Object
Sets the audioDeviceName property value. Specifies the name of the audio device in the room.
60 61 62 |
# File 'lib/models/room.rb', line 60 def audio_device_name=(value) @audio_device_name = value end |
#booking_type ⇒ Object
Gets the bookingType property value. Type of room. Possible values are standard, and reserved.
67 68 69 |
# File 'lib/models/room.rb', line 67 def booking_type return @booking_type end |
#booking_type=(value) ⇒ Object
Sets the bookingType property value. Type of room. Possible values are standard, and reserved.
75 76 77 |
# File 'lib/models/room.rb', line 75 def booking_type=(value) @booking_type = value end |
#building ⇒ Object
Gets the building property value. Specifies the building name or building number that the room is in.
82 83 84 |
# File 'lib/models/room.rb', line 82 def building return @building end |
#building=(value) ⇒ Object
Sets the building property value. Specifies the building name or building number that the room is in.
90 91 92 |
# File 'lib/models/room.rb', line 90 def building=(value) @building = value end |
#capacity ⇒ Object
Gets the capacity property value. Specifies the capacity of the room.
97 98 99 |
# File 'lib/models/room.rb', line 97 def capacity return @capacity end |
#capacity=(value) ⇒ Object
Sets the capacity property value. Specifies the capacity of the room.
105 106 107 |
# File 'lib/models/room.rb', line 105 def capacity=(value) @capacity = value end |
#display_device_name ⇒ Object
Gets the displayDeviceName property value. Specifies the name of the display device in the room.
129 130 131 |
# File 'lib/models/room.rb', line 129 def display_device_name return @display_device_name end |
#display_device_name=(value) ⇒ Object
Sets the displayDeviceName property value. Specifies the name of the display device in the room.
137 138 139 |
# File 'lib/models/room.rb', line 137 def display_device_name=(value) @display_device_name = value end |
#email_address ⇒ Object
Gets the emailAddress property value. Email address of the room.
144 145 146 |
# File 'lib/models/room.rb', line 144 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. Email address of the room.
152 153 154 |
# File 'lib/models/room.rb', line 152 def email_address=(value) @email_address = value end |
#floor_label ⇒ Object
Gets the floorLabel property value. Specifies a descriptive label for the floor, for example, P.
159 160 161 |
# File 'lib/models/room.rb', line 159 def floor_label return @floor_label end |
#floor_label=(value) ⇒ Object
Sets the floorLabel property value. Specifies a descriptive label for the floor, for example, P.
167 168 169 |
# File 'lib/models/room.rb', line 167 def floor_label=(value) @floor_label = value end |
#floor_number ⇒ Object
Gets the floorNumber property value. Specifies the floor number that the room is on.
174 175 176 |
# File 'lib/models/room.rb', line 174 def floor_number return @floor_number end |
#floor_number=(value) ⇒ Object
Sets the floorNumber property value. Specifies the floor number that the room is on.
182 183 184 |
# File 'lib/models/room.rb', line 182 def floor_number=(value) @floor_number = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/models/room.rb', line 189 def get_field_deserializers() return super.merge({ "audioDeviceName" => lambda {|n| @audio_device_name = n.get_string_value() }, "bookingType" => lambda {|n| @booking_type = n.get_enum_value(MicrosoftGraph::Models::BookingType) }, "building" => lambda {|n| @building = n.get_string_value() }, "capacity" => lambda {|n| @capacity = n.get_number_value() }, "displayDeviceName" => lambda {|n| @display_device_name = n.get_string_value() }, "emailAddress" => lambda {|n| @email_address = n.get_string_value() }, "floorLabel" => lambda {|n| @floor_label = n.get_string_value() }, "floorNumber" => lambda {|n| @floor_number = n.get_number_value() }, "isWheelChairAccessible" => lambda {|n| @is_wheel_chair_accessible = n.get_boolean_value() }, "label" => lambda {|n| @label = n.get_string_value() }, "nickname" => lambda {|n| @nickname = n.get_string_value() }, "tags" => lambda {|n| @tags = n.get_collection_of_primitive_values(String) }, "videoDeviceName" => lambda {|n| @video_device_name = n.get_string_value() }, }) end |
#is_wheel_chair_accessible ⇒ Object
Gets the isWheelChairAccessible property value. Specifies whether the room is wheelchair accessible.
210 211 212 |
# File 'lib/models/room.rb', line 210 def is_wheel_chair_accessible return @is_wheel_chair_accessible end |
#is_wheel_chair_accessible=(value) ⇒ Object
Sets the isWheelChairAccessible property value. Specifies whether the room is wheelchair accessible.
218 219 220 |
# File 'lib/models/room.rb', line 218 def is_wheel_chair_accessible=(value) @is_wheel_chair_accessible = value end |
#label ⇒ Object
Gets the label property value. Specifies a descriptive label for the room, for example, a number or name.
225 226 227 |
# File 'lib/models/room.rb', line 225 def label return @label end |
#label=(value) ⇒ Object
Sets the label property value. Specifies a descriptive label for the room, for example, a number or name.
233 234 235 |
# File 'lib/models/room.rb', line 233 def label=(value) @label = value end |
#nickname ⇒ Object
Gets the nickname property value. Specifies a nickname for the room, for example, ‘conf room’.
240 241 242 |
# File 'lib/models/room.rb', line 240 def nickname return @nickname end |
#nickname=(value) ⇒ Object
Sets the nickname property value. Specifies a nickname for the room, for example, ‘conf room’.
248 249 250 |
# File 'lib/models/room.rb', line 248 def nickname=(value) @nickname = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/models/room.rb', line 256 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("audioDeviceName", @audio_device_name) writer.write_enum_value("bookingType", @booking_type) writer.write_string_value("building", @building) writer.write_number_value("capacity", @capacity) writer.write_string_value("displayDeviceName", @display_device_name) writer.write_string_value("emailAddress", @email_address) writer.write_string_value("floorLabel", @floor_label) writer.write_number_value("floorNumber", @floor_number) writer.write_boolean_value("isWheelChairAccessible", @is_wheel_chair_accessible) writer.write_string_value("label", @label) writer.write_string_value("nickname", @nickname) writer.write_collection_of_primitive_values("tags", @tags) writer.write_string_value("videoDeviceName", @video_device_name) end |
#tags ⇒ Object
Gets the tags property value. Specifies additional features of the room, for example, details like the type of view or furniture type.
277 278 279 |
# File 'lib/models/room.rb', line 277 def return @tags end |
#tags=(value) ⇒ Object
Sets the tags property value. Specifies additional features of the room, for example, details like the type of view or furniture type.
285 286 287 |
# File 'lib/models/room.rb', line 285 def (value) @tags = value end |
#video_device_name ⇒ Object
Gets the videoDeviceName property value. Specifies the name of the video device in the room.
292 293 294 |
# File 'lib/models/room.rb', line 292 def video_device_name return @video_device_name end |
#video_device_name=(value) ⇒ Object
Sets the videoDeviceName property value. Specifies the name of the video device in the room.
300 301 302 |
# File 'lib/models/room.rb', line 300 def video_device_name=(value) @video_device_name = value end |