Class: MicrosoftGraph::Models::SwapShiftsChangeRequest
- Inherits:
-
OfferShiftRequest
- Object
- Entity
- ChangeTrackedEntity
- ScheduleChangeRequest
- OfferShiftRequest
- MicrosoftGraph::Models::SwapShiftsChangeRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/swap_shifts_change_request.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new swapShiftsChangeRequest and sets the default values.
-
#recipient_shift_id ⇒ Object
Gets the recipientShiftId property value.
-
#recipient_shift_id=(value) ⇒ Object
Sets the recipientShiftId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from OfferShiftRequest
#recipient_action_date_time, #recipient_action_date_time=, #recipient_action_message, #recipient_action_message=, #recipient_user_id, #recipient_user_id=, #sender_shift_id, #sender_shift_id=
Methods inherited from ScheduleChangeRequest
#assigned_to, #assigned_to=, #manager_action_date_time, #manager_action_date_time=, #manager_action_message, #manager_action_message=, #manager_user_id, #manager_user_id=, #sender_date_time, #sender_date_time=, #sender_message, #sender_message=, #sender_user_id, #sender_user_id=, #state, #state=
Methods inherited from ChangeTrackedEntity
#created_date_time, #created_date_time=, #last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new swapShiftsChangeRequest and sets the default values.
16 17 18 19 |
# File 'lib/models/swap_shifts_change_request.rb', line 16 def initialize() super @odata_type = "#microsoft.graph.swapShiftsChangeRequest" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
25 26 27 28 |
# File 'lib/models/swap_shifts_change_request.rb', line 25 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SwapShiftsChangeRequest.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
33 34 35 36 37 |
# File 'lib/models/swap_shifts_change_request.rb', line 33 def get_field_deserializers() return super.merge({ "recipientShiftId" => lambda {|n| @recipient_shift_id = n.get_string_value() }, }) end |
#recipient_shift_id ⇒ Object
Gets the recipientShiftId property value. ShiftId for the recipient user with whom the request is to swap.
42 43 44 |
# File 'lib/models/swap_shifts_change_request.rb', line 42 def recipient_shift_id return @recipient_shift_id end |
#recipient_shift_id=(value) ⇒ Object
Sets the recipientShiftId property value. ShiftId for the recipient user with whom the request is to swap.
50 51 52 |
# File 'lib/models/swap_shifts_change_request.rb', line 50 def recipient_shift_id=(value) @recipient_shift_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
58 59 60 61 62 |
# File 'lib/models/swap_shifts_change_request.rb', line 58 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("recipientShiftId", @recipient_shift_id) end |