Class: Google::Apis::AnalyticsV3::Columns

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

Overview

Lists columns (dimensions and metrics) for a particular report type.

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

Returns a new instance of Columns.



523
524
525
# File 'generated/google/apis/analytics_v3/classes.rb', line 523

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

Instance Attribute Details

#attribute_namesArray<String>

List of attributes names returned by columns. Corresponds to the JSON property attributeNames

Returns:

  • (Array<String>)


500
501
502
# File 'generated/google/apis/analytics_v3/classes.rb', line 500

def attribute_names
  @attribute_names
end

#etagString

Etag of collection. This etag can be compared with the last response etag to check if response has changed. Corresponds to the JSON property etag

Returns:

  • (String)


506
507
508
# File 'generated/google/apis/analytics_v3/classes.rb', line 506

def etag
  @etag
end

#itemsArray<Google::Apis::AnalyticsV3::Column>

List of columns for a report type. Corresponds to the JSON property items



511
512
513
# File 'generated/google/apis/analytics_v3/classes.rb', line 511

def items
  @items
end

#kindString

Collection type. Corresponds to the JSON property kind

Returns:

  • (String)


516
517
518
# File 'generated/google/apis/analytics_v3/classes.rb', line 516

def kind
  @kind
end

#total_resultsFixnum

Total number of columns returned in the response. Corresponds to the JSON property totalResults

Returns:

  • (Fixnum)


521
522
523
# File 'generated/google/apis/analytics_v3/classes.rb', line 521

def total_results
  @total_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



528
529
530
531
532
533
534
# File 'generated/google/apis/analytics_v3/classes.rb', line 528

def update!(**args)
  @attribute_names = args[:attribute_names] if args.key?(:attribute_names)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @total_results = args[:total_results] if args.key?(:total_results)
end