Class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry

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

Overview

Header for the metrics.

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) ⇒ MetricHeaderEntry

Returns a new instance of MetricHeaderEntry.



919
920
921
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 919

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

Instance Attribute Details

#nameString

The name of the header. Corresponds to the JSON property name

Returns:

  • (String)


912
913
914
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 912

def name
  @name
end

#typeString

The type of the metric, for example INTEGER. Corresponds to the JSON property type

Returns:

  • (String)


917
918
919
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 917

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



924
925
926
927
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 924

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