Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2IntegerLimits

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

Limits for integer field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2IntegerLimits

Returns a new instance of GoogleAppsDriveLabelsV2IntegerLimits.



2139
2140
2141
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2139

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

Instance Attribute Details

#max_valueFixnum

Maximum value for an integer field type. Corresponds to the JSON property maxValue

Returns:

  • (Fixnum)


2132
2133
2134
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2132

def max_value
  @max_value
end

#min_valueFixnum

Minimum value for an integer field type. Corresponds to the JSON property minValue

Returns:

  • (Fixnum)


2137
2138
2139
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2137

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2144
2145
2146
2147
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2144

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