Class: Google::Apis::YoutubeAnalyticsV2::GroupSnippet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_analytics_v2/classes.rb,
generated/google/apis/youtube_analytics_v2/representations.rb,
generated/google/apis/youtube_analytics_v2/representations.rb

Overview

A group snippet.

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

Returns a new instance of GroupSnippet



343
344
345
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 343

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

Instance Attribute Details

#published_atString

The date and time that the group was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property publishedAt

Returns:

  • (String)


336
337
338
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 336

def published_at
  @published_at
end

#titleString

The group name. The value must be a non-empty string. Corresponds to the JSON property title

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 341

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



348
349
350
351
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 348

def update!(**args)
  @published_at = args[:published_at] if args.key?(:published_at)
  @title = args[:title] if args.key?(:title)
end