Class: Google::Apis::AnalyticsV3::ProfileSummary

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 an Analytics ProfileSummary. ProfileSummary returns basic information (i.e., summary) for a profile.

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

Returns a new instance of ProfileSummary



4124
4125
4126
# File 'generated/google/apis/analytics_v3/classes.rb', line 4124

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

Instance Attribute Details

#idString

View (profile) ID. Corresponds to the JSON property id

Returns:

  • (String)


4101
4102
4103
# File 'generated/google/apis/analytics_v3/classes.rb', line 4101

def id
  @id
end

#kindString

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

Returns:

  • (String)


4106
4107
4108
# File 'generated/google/apis/analytics_v3/classes.rb', line 4106

def kind
  @kind
end

#nameString

View (profile) name. Corresponds to the JSON property name

Returns:

  • (String)


4111
4112
4113
# File 'generated/google/apis/analytics_v3/classes.rb', line 4111

def name
  @name
end

#starredBoolean Also known as: starred?

Indicates whether this view (profile) is starred or not. Corresponds to the JSON property starred

Returns:

  • (Boolean)


4116
4117
4118
# File 'generated/google/apis/analytics_v3/classes.rb', line 4116

def starred
  @starred
end

#typeString

View (Profile) type. Supported types: WEB or APP. Corresponds to the JSON property type

Returns:

  • (String)


4122
4123
4124
# File 'generated/google/apis/analytics_v3/classes.rb', line 4122

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4129
4130
4131
4132
4133
4134
4135
# File 'generated/google/apis/analytics_v3/classes.rb', line 4129

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