Class: Google::Apis::AnalyticsreportingV4::MetricHeader

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

The headers 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) ⇒ MetricHeader

Returns a new instance of MetricHeader



1408
1409
1410
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1408

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

Instance Attribute Details

#metric_header_entriesArray<Google::Apis::AnalyticsreportingV4::MetricHeaderEntry>

Headers for the metrics in the response. Corresponds to the JSON property metricHeaderEntries



1406
1407
1408
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1406

def metric_header_entries
  @metric_header_entries
end

#pivot_headersArray<Google::Apis::AnalyticsreportingV4::PivotHeader>

Headers for the pivots in the response. Corresponds to the JSON property pivotHeaders



1401
1402
1403
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1401

def pivot_headers
  @pivot_headers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1413
1414
1415
1416
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1413

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