Class: Google::Apis::SheetsV4::ConditionValue
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SheetsV4::ConditionValue
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb 
Overview
The value of the condition.
Instance Attribute Summary collapse
- 
  
    
      #relative_date  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A relative date (based on the current date).
 - 
  
    
      #user_entered_value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A value the condition is based on.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ConditionValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ConditionValue.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConditionValue
Returns a new instance of ConditionValue
      3202 3203 3204  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 3202 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#relative_date ⇒ String
A relative date (based on the current date).
Valid only if the type is
DATE_BEFORE,
DATE_AFTER,
DATE_ON_OR_BEFORE or
DATE_ON_OR_AFTER.
Relative dates are not supported in data validation.
They are supported only in conditional formatting and
conditional filters.
Corresponds to the JSON property relativeDate
      3193 3194 3195  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 3193 def relative_date @relative_date end  | 
  
#user_entered_value ⇒ String
A value the condition is based on.
The value is parsed as if the user typed into a cell.
Formulas are supported (and must begin with an = or a '+').
Corresponds to the JSON property userEnteredValue
      3200 3201 3202  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 3200 def user_entered_value @user_entered_value end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3207 3208 3209 3210  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 3207 def update!(**args) @relative_date = args[:relative_date] if args.key?(:relative_date) @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value) end  |