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

Constructor Details

#initialize(**args) ⇒ Feature

Returns a new instance of Feature.



339
340
341
# File 'generated/google/apis/drive_v2/classes.rb', line 339

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

Instance Attribute Details

#feature_nameString

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

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/drive_v2/classes.rb', line 332

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)


337
338
339
# File 'generated/google/apis/drive_v2/classes.rb', line 337

def feature_rate
  @feature_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



344
345
346
347
# File 'generated/google/apis/drive_v2/classes.rb', line 344

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