Class: MicrosoftGraph::Models::WorkbookCommentReply
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_comment_reply.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
-
#content ⇒ Object
Gets the content property value.
-
#content=(value) ⇒ Object
Sets the content property value.
-
#content_type ⇒ Object
Gets the contentType property value.
-
#content_type=(value) ⇒ Object
Sets the contentType property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookCommentReply and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookCommentReply and sets the default values.
19 20 21 |
# File 'lib/models/workbook_comment_reply.rb', line 19 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
57 58 59 60 |
# File 'lib/models/workbook_comment_reply.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookCommentReply.new end |
Instance Method Details
#content ⇒ Object
Gets the content property value. The content of a comment reply.
26 27 28 |
# File 'lib/models/workbook_comment_reply.rb', line 26 def content return @content end |
#content=(value) ⇒ Object
Sets the content property value. The content of a comment reply.
34 35 36 |
# File 'lib/models/workbook_comment_reply.rb', line 34 def content=(value) @content = value end |
#content_type ⇒ Object
Gets the contentType property value. Indicates the type for the comment reply.
41 42 43 |
# File 'lib/models/workbook_comment_reply.rb', line 41 def content_type return @content_type end |
#content_type=(value) ⇒ Object
Sets the contentType property value. Indicates the type for the comment reply.
49 50 51 |
# File 'lib/models/workbook_comment_reply.rb', line 49 def content_type=(value) @content_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
65 66 67 68 69 70 |
# File 'lib/models/workbook_comment_reply.rb', line 65 def get_field_deserializers() return super.merge({ "content" => lambda {|n| @content = n.get_string_value() }, "contentType" => lambda {|n| @content_type = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
76 77 78 79 80 81 |
# File 'lib/models/workbook_comment_reply.rb', line 76 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("content", @content) writer.write_string_value("contentType", @content_type) end |