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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Context

Returns a new instance of Context



1099
1100
1101
# File 'generated/google/apis/drive_v2/classes.rb', line 1099

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)


1090
1091
1092
# File 'generated/google/apis/drive_v2/classes.rb', line 1090

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)


1097
1098
1099
# File 'generated/google/apis/drive_v2/classes.rb', line 1097

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1104
1105
1106
1107
# File 'generated/google/apis/drive_v2/classes.rb', line 1104

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