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

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

Overview

A group snippet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupSnippet

Returns a new instance of GroupSnippet.



322
323
324
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 322

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)


315
316
317
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 315

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)


320
321
322
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 320

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
330
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 327

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