Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2TextLimits
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2TextLimits
- 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 text Field type.
Instance Attribute Summary collapse
-
#max_length ⇒ Fixnum
Maximum length allowed for a text Field type.
-
#min_length ⇒ Fixnum
Minimum length allowed for a text Field type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2TextLimits
constructor
A new instance of GoogleAppsDriveLabelsV2TextLimits.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2TextLimits
Returns a new instance of GoogleAppsDriveLabelsV2TextLimits.
2985 2986 2987 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2985 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_length ⇒ Fixnum
Maximum length allowed for a text Field type.
Corresponds to the JSON property maxLength
2978 2979 2980 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2978 def max_length @max_length end |
#min_length ⇒ Fixnum
Minimum length allowed for a text Field type.
Corresponds to the JSON property minLength
2983 2984 2985 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2983 def min_length @min_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2990 2991 2992 2993 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2990 def update!(**args) @max_length = args[:max_length] if args.key?(:max_length) @min_length = args[:min_length] if args.key?(:min_length) end |