Class: Google::Apis::RedisV1::TypedValue
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::RedisV1::TypedValue
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb 
Overview
TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
Instance Attribute Summary collapse
- 
  
    
      #bool_value  ⇒ Boolean 
    
    
      (also: #bool_value?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
For boolean value Corresponds to the JSON property
boolValue. - 
  
    
      #double_value  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
For double value Corresponds to the JSON property
doubleValue. - 
  
    
      #int64_value  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
For integer value Corresponds to the JSON property
int64Value. - 
  
    
      #string_value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
For string value Corresponds to the JSON property
stringValue. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TypedValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of TypedValue.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ TypedValue
Returns a new instance of TypedValue.
      2722 2723 2724  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2722 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
For boolean value
Corresponds to the JSON property boolValue
      2704 2705 2706  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2704 def bool_value @bool_value end  | 
  
#double_value ⇒ Float
For double value
Corresponds to the JSON property doubleValue
      2710 2711 2712  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2710 def double_value @double_value end  | 
  
#int64_value ⇒ Fixnum
For integer value
Corresponds to the JSON property int64Value
      2715 2716 2717  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2715 def int64_value @int64_value end  | 
  
#string_value ⇒ String
For string value
Corresponds to the JSON property stringValue
      2720 2721 2722  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2720 def string_value @string_value end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2727 2728 2729 2730 2731 2732  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2727 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @double_value = args[:double_value] if args.key?(:double_value) @int64_value = args[:int64_value] if args.key?(:int64_value) @string_value = args[:string_value] if args.key?(:string_value) end  |