Class: Google::Apis::DoubleclicksearchV2::CustomMetric

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomMetric

Returns a new instance of CustomMetric.



397
398
399
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 397

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Custom metric name. Corresponds to the JSON property name

Returns:

  • (String)


390
391
392
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 390

def name
  @name
end

#valueFloat

Custom metric numeric value. Corresponds to the JSON property value

Returns:

  • (Float)


395
396
397
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 395

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



402
403
404
405
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 402

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end