Class: MicrosoftGraph::Models::WorkbookCommentReply

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_comment_reply.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 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

Raises:

  • (StandardError)


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

#contentObject

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_typeObject

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_deserializersObject

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

Raises:

  • (StandardError)


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