Class: Google::Apis::GmailpostmastertoolsV2::BaseMetric
- Inherits:
-
Object
- Object
- Google::Apis::GmailpostmastertoolsV2::BaseMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gmailpostmastertools_v2/classes.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb
Overview
Specifies the base metric to query, which can be a predefined standard metric or a user-defined custom metric (if supported in the future).
Instance Attribute Summary collapse
-
#standard_metric ⇒ String
A predefined standard metric.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BaseMetric
constructor
A new instance of BaseMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BaseMetric
Returns a new instance of BaseMetric.
35 36 37 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 35 def initialize(**args) update!(**args) end |
Instance Attribute Details
#standard_metric ⇒ String
A predefined standard metric.
Corresponds to the JSON property standardMetric
33 34 35 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 33 def standard_metric @standard_metric end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
40 41 42 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 40 def update!(**args) @standard_metric = args[:standard_metric] if args.key?(:standard_metric) end |