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.



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

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)


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

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)


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

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1599
1600
1601
1602
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1599

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