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



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

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

Instance Attribute Details

#feature_nameString

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

Returns:

  • (String)


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

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)


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

def feature_rate
  @feature_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



299
300
301
302
# File 'generated/google/apis/drive_v2/classes.rb', line 299

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