Class: Google::Apis::DriveV2::About::Feature
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::About::Feature
- 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
-
#feature_name ⇒ String
The name of the feature.
-
#feature_rate ⇒ Float
The request limit rate for this feature, in queries per second.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Feature
constructor
A new instance of Feature.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
The name of the feature.
Corresponds to the JSON property featureName
332 333 334 |
# File 'generated/google/apis/drive_v2/classes.rb', line 332 def feature_name @feature_name end |
#feature_rate ⇒ Float
The request limit rate for this feature, in queries per second.
Corresponds to the JSON property featureRate
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 |