Class: Google::Apis::DoubleclicksearchV2::CustomMetric
- Inherits:
-
Object
- Object
- Google::Apis::DoubleclicksearchV2::CustomMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/doubleclicksearch_v2/classes.rb,
lib/google/apis/doubleclicksearch_v2/representations.rb,
lib/google/apis/doubleclicksearch_v2/representations.rb
Overview
A message containing the custom metric.
Instance Attribute Summary collapse
-
#name ⇒ String
Custom metric name.
-
#value ⇒ Float
Custom metric numeric value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomMetric
constructor
A new instance of CustomMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomMetric
Returns a new instance of CustomMetric.
398 399 400 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 398 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Custom metric name.
Corresponds to the JSON property name
391 392 393 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 391 def name @name end |
#value ⇒ Float
Custom metric numeric value.
Corresponds to the JSON property value
396 397 398 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 396 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
403 404 405 406 |
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 403 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |