Class: Google::Apis::DriveV2::Comment::Context

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb

Overview

The context of the file which is being commented on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Context

Returns a new instance of Context.



1162
1163
1164
# File 'generated/google/apis/drive_v2/classes.rb', line 1162

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#typeString

The MIME type of the context snippet. Corresponds to the JSON property type

Returns:

  • (String)


1153
1154
1155
# File 'generated/google/apis/drive_v2/classes.rb', line 1153

def type
  @type
end

#valueString

Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. Corresponds to the JSON property value

Returns:

  • (String)


1160
1161
1162
# File 'generated/google/apis/drive_v2/classes.rb', line 1160

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1167
1168
1169
1170
# File 'generated/google/apis/drive_v2/classes.rb', line 1167

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end