Class: Google::Apis::AnalyticsV3::AccountSummary

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 AccountSummary. An AccountSummary is a lightweight tree comprised of properties/profiles.

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

Returns a new instance of AccountSummary



276
277
278
# File 'generated/google/apis/analytics_v3/classes.rb', line 276

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

Instance Attribute Details

#idString

Account ID. Corresponds to the JSON property id

Returns:

  • (String)


253
254
255
# File 'generated/google/apis/analytics_v3/classes.rb', line 253

def id
  @id
end

#kindString

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

Returns:

  • (String)


258
259
260
# File 'generated/google/apis/analytics_v3/classes.rb', line 258

def kind
  @kind
end

#nameString

Account name. Corresponds to the JSON property name

Returns:

  • (String)


263
264
265
# File 'generated/google/apis/analytics_v3/classes.rb', line 263

def name
  @name
end

#starredBoolean Also known as: starred?

Indicates whether this account is starred or not. Corresponds to the JSON property starred

Returns:

  • (Boolean)


268
269
270
# File 'generated/google/apis/analytics_v3/classes.rb', line 268

def starred
  @starred
end

#web_propertiesArray<Google::Apis::AnalyticsV3::WebPropertySummary>

List of web properties under this account. Corresponds to the JSON property webProperties



274
275
276
# File 'generated/google/apis/analytics_v3/classes.rb', line 274

def web_properties
  @web_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



281
282
283
284
285
286
287
# File 'generated/google/apis/analytics_v3/classes.rb', line 281

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)
  @web_properties = args[:web_properties] if args.key?(:web_properties)
end