Class: Google::Apis::YoutubeAnalyticsV2::ResultTableColumnHeader

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

Overview

The description of a column of the result table.

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

Returns a new instance of ResultTableColumnHeader



519
520
521
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 519

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

Instance Attribute Details

#column_typeString

The type of the column (DIMENSION or METRIC). Corresponds to the JSON property columnType

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 507

def column_type
  @column_type
end

#data_typeString

The type of the data in the column (STRING, INTEGER, FLOAT, etc.). Corresponds to the JSON property dataType

Returns:

  • (String)


512
513
514
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 512

def data_type
  @data_type
end

#nameString

The name of the dimension or metric. Corresponds to the JSON property name

Returns:

  • (String)


517
518
519
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 517

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



524
525
526
527
528
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 524

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