Class: Google::Apis::AnalyticsV3::CustomDimension

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 Analytics Custom Dimension.

Defined Under Namespace

Classes: ParentLink

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

Returns a new instance of CustomDimension



835
836
837
# File 'generated/google/apis/analytics_v3/classes.rb', line 835

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

Instance Attribute Details

#account_idString

Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


775
776
777
# File 'generated/google/apis/analytics_v3/classes.rb', line 775

def 
  @account_id
end

#activeBoolean Also known as: active?

Boolean indicating whether the custom dimension is active. Corresponds to the JSON property active

Returns:

  • (Boolean)


780
781
782
# File 'generated/google/apis/analytics_v3/classes.rb', line 780

def active
  @active
end

#createdDateTime

Time the custom dimension was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


786
787
788
# File 'generated/google/apis/analytics_v3/classes.rb', line 786

def created
  @created
end

#idString

Custom dimension ID. Corresponds to the JSON property id

Returns:

  • (String)


791
792
793
# File 'generated/google/apis/analytics_v3/classes.rb', line 791

def id
  @id
end

#indexFixnum

Index of the custom dimension. Corresponds to the JSON property index

Returns:

  • (Fixnum)


796
797
798
# File 'generated/google/apis/analytics_v3/classes.rb', line 796

def index
  @index
end

#kindString

Kind value for a custom dimension. Set to "analytics#customDimension". It is a read-only field. Corresponds to the JSON property kind

Returns:

  • (String)


802
803
804
# File 'generated/google/apis/analytics_v3/classes.rb', line 802

def kind
  @kind
end

#nameString

Name of the custom dimension. Corresponds to the JSON property name

Returns:

  • (String)


807
808
809
# File 'generated/google/apis/analytics_v3/classes.rb', line 807

def name
  @name
end

Parent link for the custom dimension. Points to the property to which the custom dimension belongs. Corresponds to the JSON property parentLink



813
814
815
# File 'generated/google/apis/analytics_v3/classes.rb', line 813

def parent_link
  @parent_link
end

#scopeString

Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. Corresponds to the JSON property scope

Returns:

  • (String)


818
819
820
# File 'generated/google/apis/analytics_v3/classes.rb', line 818

def scope
  @scope
end

Link for the custom dimension Corresponds to the JSON property selfLink

Returns:

  • (String)


823
824
825
# File 'generated/google/apis/analytics_v3/classes.rb', line 823

def self_link
  @self_link
end

#updatedDateTime

Time the custom dimension was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


828
829
830
# File 'generated/google/apis/analytics_v3/classes.rb', line 828

def updated
  @updated
end

#web_property_idString

Property ID. Corresponds to the JSON property webPropertyId

Returns:

  • (String)


833
834
835
# File 'generated/google/apis/analytics_v3/classes.rb', line 833

def web_property_id
  @web_property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



840
841
842
843
844
845
846
847
848
849
850
851
852
853
# File 'generated/google/apis/analytics_v3/classes.rb', line 840

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @active = args[:active] if args.key?(:active)
  @created = args[:created] if args.key?(:created)
  @id = args[:id] if args.key?(:id)
  @index = args[:index] if args.key?(:index)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @parent_link = args[:parent_link] if args.key?(:parent_link)
  @scope = args[:scope] if args.key?(:scope)
  @self_link = args[:self_link] if args.key?(:self_link)
  @updated = args[:updated] if args.key?(:updated)
  @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end