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.



1590
1591
1592
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1590

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)


1583
1584
1585
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1583

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)


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

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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