Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLongTextLimits

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 long text Field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLongTextLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaLongTextLimits.



2882
2883
2884
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2882

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

Instance Attribute Details

#max_lengthFixnum

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

Returns:

  • (Fixnum)


2875
2876
2877
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2875

def max_length
  @max_length
end

#min_lengthFixnum

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

Returns:

  • (Fixnum)


2880
2881
2882
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2880

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2887
2888
2889
2890
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2887

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