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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/doubleclicksearch_v2/classes.rb,
generated/google/apis/doubleclicksearch_v2/representations.rb,
generated/google/apis/doubleclicksearch_v2/representations.rb

Overview

A message containing the custome metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomMetric

Returns a new instance of CustomMetric.



377
378
379
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 377

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

Instance Attribute Details

#nameString

Custom metric name. Corresponds to the JSON property name

Returns:

  • (String)


370
371
372
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 370

def name
  @name
end

#valueFloat

Custom metric numeric value. Corresponds to the JSON property value

Returns:

  • (Float)


375
376
377
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 375

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



382
383
384
385
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 382

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