Class: Google::Apis::DriveV2::About::Feature
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::About::Feature
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/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.
335 336 337 |
# File 'lib/google/apis/drive_v2/classes.rb', line 335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#feature_name ⇒ String
The name of the feature.
Corresponds to the JSON property featureName
328 329 330 |
# File 'lib/google/apis/drive_v2/classes.rb', line 328 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
333 334 335 |
# File 'lib/google/apis/drive_v2/classes.rb', line 333 def feature_rate @feature_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
340 341 342 343 |
# File 'lib/google/apis/drive_v2/classes.rb', line 340 def update!(**args) @feature_name = args[:feature_name] if args.key?(:feature_name) @feature_rate = args[:feature_rate] if args.key?(:feature_rate) end |