Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaTextLimits

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

Limits for text Field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaTextLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaTextLimits.



3016
3017
3018
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3016

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

Instance Attribute Details

#max_lengthFixnum

Maximum length allowed for a text Field type. Corresponds to the JSON property maxLength

Returns:

  • (Fixnum)


3009
3010
3011
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3009

def max_length
  @max_length
end

#min_lengthFixnum

Minimum length allowed for a text Field type. Corresponds to the JSON property minLength

Returns:

  • (Fixnum)


3014
3015
3016
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3014

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3021
3022
3023
3024
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3021

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