Class: Google::Apis::AnalyticsV3::CustomDimension
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AnalyticsV3::CustomDimension
 
- 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
- 
  
    
      #account_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Account ID. 
- 
  
    
      #active  ⇒ Boolean 
    
    
      (also: #active?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Boolean indicating whether the custom dimension is active. 
- 
  
    
      #created  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time the custom dimension was created. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Custom dimension ID. 
- 
  
    
      #index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Index of the custom dimension. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Kind value for a custom dimension. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of the custom dimension. 
- 
  
    
      #parent_link  ⇒ Google::Apis::AnalyticsV3::CustomDimension::ParentLink 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Parent link for the custom dimension. 
- 
  
    
      #scope  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Link for the custom dimension Corresponds to the JSON property selfLink.
- 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time the custom dimension was last modified. 
- 
  
    
      #web_property_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Property ID. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CustomDimension 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CustomDimension. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomDimension
Returns a new instance of CustomDimension
| 1019 1020 1021 | # File 'generated/google/apis/analytics_v3/classes.rb', line 1019 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#account_id ⇒ String
Account ID.
Corresponds to the JSON property accountId
| 959 960 961 | # File 'generated/google/apis/analytics_v3/classes.rb', line 959 def account_id @account_id end | 
#active ⇒ Boolean Also known as: active?
Boolean indicating whether the custom dimension is active.
Corresponds to the JSON property active
| 964 965 966 | # File 'generated/google/apis/analytics_v3/classes.rb', line 964 def active @active end | 
#created ⇒ DateTime
Time the custom dimension was created.
Corresponds to the JSON property created
| 970 971 972 | # File 'generated/google/apis/analytics_v3/classes.rb', line 970 def created @created end | 
#id ⇒ String
Custom dimension ID.
Corresponds to the JSON property id
| 975 976 977 | # File 'generated/google/apis/analytics_v3/classes.rb', line 975 def id @id end | 
#index ⇒ Fixnum
Index of the custom dimension.
Corresponds to the JSON property index
| 980 981 982 | # File 'generated/google/apis/analytics_v3/classes.rb', line 980 def index @index end | 
#kind ⇒ String
Kind value for a custom dimension. Set to "analytics#customDimension". It is a
read-only field.
Corresponds to the JSON property kind
| 986 987 988 | # File 'generated/google/apis/analytics_v3/classes.rb', line 986 def kind @kind end | 
#name ⇒ String
Name of the custom dimension.
Corresponds to the JSON property name
| 991 992 993 | # File 'generated/google/apis/analytics_v3/classes.rb', line 991 def name @name end | 
#parent_link ⇒ Google::Apis::AnalyticsV3::CustomDimension::ParentLink
Parent link for the custom dimension. Points to the property to which the
custom dimension belongs.
Corresponds to the JSON property parentLink
| 997 998 999 | # File 'generated/google/apis/analytics_v3/classes.rb', line 997 def parent_link @parent_link end | 
#scope ⇒ String
Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
Corresponds to the JSON property scope
| 1002 1003 1004 | # File 'generated/google/apis/analytics_v3/classes.rb', line 1002 def scope @scope end | 
#self_link ⇒ String
Link for the custom dimension
Corresponds to the JSON property selfLink
| 1007 1008 1009 | # File 'generated/google/apis/analytics_v3/classes.rb', line 1007 def self_link @self_link end | 
#updated ⇒ DateTime
Time the custom dimension was last modified.
Corresponds to the JSON property updated
| 1012 1013 1014 | # File 'generated/google/apis/analytics_v3/classes.rb', line 1012 def updated @updated end | 
#web_property_id ⇒ String
Property ID.
Corresponds to the JSON property webPropertyId
| 1017 1018 1019 | # File 'generated/google/apis/analytics_v3/classes.rb', line 1017 def web_property_id @web_property_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 | # File 'generated/google/apis/analytics_v3/classes.rb', line 1024 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 |