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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_name ⇒ String
The name of the feature.
Corresponds to the JSON property featureName
280 281 282 |
# File 'generated/google/apis/drive_v2/classes.rb', line 280 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
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 |