Class: Google::Apis::DriveV2::About::Feature

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Feature

Returns a new instance of Feature



287
288
289
# File 'generated/google/apis/drive_v2/classes.rb', line 287

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

Instance Attribute Details

#feature_nameString

The name of the feature. Corresponds to the JSON property featureName

Returns:

  • (String)


280
281
282
# File 'generated/google/apis/drive_v2/classes.rb', line 280

def feature_name
  @feature_name
end

#feature_rateFloat

The request limit rate for this feature, in queries per second. Corresponds to the JSON property featureRate

Returns:

  • (Float)


285
286
287
# File 'generated/google/apis/drive_v2/classes.rb', line 285

def feature_rate
  @feature_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



292
293
294
295
# File 'generated/google/apis/drive_v2/classes.rb', line 292

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