Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldIntegerOptions

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

Overview

Options for the Integer field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldIntegerOptions

Returns a new instance of GoogleAppsDriveLabelsV2FieldIntegerOptions.



550
551
552
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 550

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)


543
544
545
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 543

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)


548
549
550
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 548

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



555
556
557
558
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 555

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