Class: Google::Apis::YoutubeV3::TestItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestItem

Returns a new instance of TestItem.



7512
7513
7514
# File 'lib/google/apis/youtube_v3/classes.rb', line 7512

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

Instance Attribute Details

#etagString

Etag for the resource. See https://en.wikipedia.org/wiki/HTTP_ETag. Corresponds to the JSON property etag

Returns:

  • (String)


7489
7490
7491
# File 'lib/google/apis/youtube_v3/classes.rb', line 7489

def etag
  @etag
end

Corresponds to the JSON property featuredPart

Returns:

  • (Boolean)


7494
7495
7496
# File 'lib/google/apis/youtube_v3/classes.rb', line 7494

def featured_part
  @featured_part
end

#gaiaFixnum

Corresponds to the JSON property gaia

Returns:

  • (Fixnum)


7500
7501
7502
# File 'lib/google/apis/youtube_v3/classes.rb', line 7500

def gaia
  @gaia
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


7505
7506
7507
# File 'lib/google/apis/youtube_v3/classes.rb', line 7505

def id
  @id
end

#snippetGoogle::Apis::YoutubeV3::TestItemTestItemSnippet

Corresponds to the JSON property snippet



7510
7511
7512
# File 'lib/google/apis/youtube_v3/classes.rb', line 7510

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7517
7518
7519
7520
7521
7522
7523
# File 'lib/google/apis/youtube_v3/classes.rb', line 7517

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @featured_part = args[:featured_part] if args.key?(:featured_part)
  @gaia = args[:gaia] if args.key?(:gaia)
  @id = args[:id] if args.key?(:id)
  @snippet = args[:snippet] if args.key?(:snippet)
end