Class: Google::Apis::GmailpostmastertoolsV2::BaseMetric

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_metricString

A predefined standard metric. Corresponds to the JSON property standardMetric

Returns:

  • (String)


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