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.



2913
2914
2915
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2913

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)


2906
2907
2908
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2906

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)


2911
2912
2913
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2911

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2918
2919
2920
2921
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2918

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