Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldIntegerOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drivelabels_v2beta/classes.rb,
lib/google/apis/drivelabels_v2beta/representations.rb,
lib/google/apis/drivelabels_v2beta/representations.rb

Overview

Options for the Integer field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldIntegerOptions

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldIntegerOptions.



1588
1589
1590
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1588

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_valueFixnum

Output only. The maximum valid value for the integer field. Corresponds to the JSON property maxValue

Returns:

  • (Fixnum)


1581
1582
1583
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1581

def max_value
  @max_value
end

#min_valueFixnum

Output only. The minimum valid value for the integer field. Corresponds to the JSON property minValue

Returns:

  • (Fixnum)


1586
1587
1588
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1586

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1593
1594
1595
1596
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1593

def update!(**args)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
end