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.



7438
7439
7440
# File 'lib/google/apis/youtube_v3/classes.rb', line 7438

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)


7415
7416
7417
# File 'lib/google/apis/youtube_v3/classes.rb', line 7415

def etag
  @etag
end

Corresponds to the JSON property featuredPart

Returns:

  • (Boolean)


7420
7421
7422
# File 'lib/google/apis/youtube_v3/classes.rb', line 7420

def featured_part
  @featured_part
end

#gaiaFixnum

Corresponds to the JSON property gaia

Returns:

  • (Fixnum)


7426
7427
7428
# File 'lib/google/apis/youtube_v3/classes.rb', line 7426

def gaia
  @gaia
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


7431
7432
7433
# File 'lib/google/apis/youtube_v3/classes.rb', line 7431

def id
  @id
end

#snippetGoogle::Apis::YoutubeV3::TestItemTestItemSnippet

Corresponds to the JSON property snippet



7436
7437
7438
# File 'lib/google/apis/youtube_v3/classes.rb', line 7436

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7443
7444
7445
7446
7447
7448
7449
# File 'lib/google/apis/youtube_v3/classes.rb', line 7443

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