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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Context
Returns a new instance of Context
1092 1093 1094 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1092 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The MIME type of the context snippet.
Corresponds to the JSON property type
1083 1084 1085 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1083 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
1090 1091 1092 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1090 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1097 1098 1099 1100 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1097 def update!(**args) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |