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
      1099 1100 1101  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 1099 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#type ⇒ String
The MIME type of the context snippet.
Corresponds to the JSON property type
      1090 1091 1092  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 1090 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
      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  |