Class: Google::Apis::DatamigrationV1::RoundToScale
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::RoundToScale
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1/classes.rb,
 lib/google/apis/datamigration_v1/representations.rb,
 lib/google/apis/datamigration_v1/representations.rb
Overview
This allows the data to change scale, for example if the source is 2 digits after the decimal point, specify round to scale value = 2. If for example the value needs to be converted to an integer, use round to scale value = 0.
Instance Attribute Summary collapse
- 
  
    
      #scale  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RoundToScale 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RoundToScale. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ RoundToScale
Returns a new instance of RoundToScale.
| 3842 3843 3844 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3842 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#scale ⇒ Fixnum
Required. Scale value to be used
Corresponds to the JSON property scale
| 3840 3841 3842 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3840 def scale @scale end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3847 3848 3849 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3847 def update!(**args) @scale = args[:scale] if args.key?(:scale) end |