Class: Google::Apis::DriveV2::Comment::Context
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::Comment::Context
- 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
-
#type ⇒ String
The MIME type of the context snippet.
-
#value ⇒ String
Data representation of the segment of the file being commented on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Context
constructor
A new instance of Context.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#type ⇒ String
The MIME type of the context snippet.
Corresponds to the JSON property type
1153 1154 1155 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1153 def type @type end |
#value ⇒ String
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
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 |