Class: Google::Apis::AnalyticsV3::Column

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

JSON template for a metadata column.

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

Returns a new instance of Column



693
694
695
# File 'generated/google/apis/analytics_v3/classes.rb', line 693

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

Instance Attribute Details

#attributesHash<String,String>

Map of attribute name and value for this column. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


681
682
683
# File 'generated/google/apis/analytics_v3/classes.rb', line 681

def attributes
  @attributes
end

#idString

Column id. Corresponds to the JSON property id

Returns:

  • (String)


686
687
688
# File 'generated/google/apis/analytics_v3/classes.rb', line 686

def id
  @id
end

#kindString

Resource type for Analytics column. Corresponds to the JSON property kind

Returns:

  • (String)


691
692
693
# File 'generated/google/apis/analytics_v3/classes.rb', line 691

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



698
699
700
701
702
# File 'generated/google/apis/analytics_v3/classes.rb', line 698

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
end