Class: Google::Cloud::Firestore::FieldValue
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Firestore::FieldValue
 
 
- Defined in:
 - lib/google/cloud/firestore/field_value.rb
 
Overview
FieldValue
Represents a change to be made to fields in document data in the Firestore API.
Class Method Summary collapse
- 
  
    
      .delete  ⇒ FieldValue 
    
    
  
  
  
  
  
  
  
  
  
    
Creates a field value object representing the deletion of a field in document data.
 - 
  
    
      .server_time  ⇒ FieldValue 
    
    
  
  
  
  
  
  
  
  
  
    
Creates a field value object representing set a field's value to the server timestamp when accessing the document data.
 
Instance Method Summary collapse
- 
  
    
      #type  ⇒ Symbol 
    
    
  
  
  
  
  
  
  
  
  
    
The type of change to make to an individual field in document data.
 
Class Method Details
.delete ⇒ FieldValue
Creates a field value object representing the deletion of a field in document data.
      84 85 86  | 
    
      # File 'lib/google/cloud/firestore/field_value.rb', line 84 def self.delete new :delete end  | 
  
.server_time ⇒ FieldValue
Creates a field value object representing set a field's value to the server timestamp when accessing the document data.
      107 108 109  | 
    
      # File 'lib/google/cloud/firestore/field_value.rb', line 107 def self.server_time new :server_time end  | 
  
Instance Method Details
#type ⇒ Symbol
The type of change to make to an individual field in document data.
      61 62 63  | 
    
      # File 'lib/google/cloud/firestore/field_value.rb', line 61 def type @type end  |