Class: Google::Apis::YoutubeV3::TestItem
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::TestItem
- 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
-
#etag ⇒ String
Etag for the resource.
-
#featured_part ⇒ Boolean
(also: #featured_part?)
Corresponds to the JSON property
featuredPart. -
#gaia ⇒ Fixnum
Corresponds to the JSON property
gaia. -
#id ⇒ String
Corresponds to the JSON property
id. -
#snippet ⇒ Google::Apis::YoutubeV3::TestItemTestItemSnippet
Corresponds to the JSON property
snippet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestItem
constructor
A new instance of TestItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestItem
Returns a new instance of TestItem.
7681 7682 7683 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7681 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Etag for the resource. See https://en.wikipedia.org/wiki/HTTP_ETag.
Corresponds to the JSON property etag
7658 7659 7660 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7658 def etag @etag end |
#featured_part ⇒ Boolean Also known as: featured_part?
Corresponds to the JSON property featuredPart
7663 7664 7665 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7663 def featured_part @featured_part end |
#gaia ⇒ Fixnum
Corresponds to the JSON property gaia
7669 7670 7671 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7669 def gaia @gaia end |
#id ⇒ String
Corresponds to the JSON property id
7674 7675 7676 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7674 def id @id end |
#snippet ⇒ Google::Apis::YoutubeV3::TestItemTestItemSnippet
Corresponds to the JSON property snippet
7679 7680 7681 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7679 def snippet @snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7686 7687 7688 7689 7690 7691 7692 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7686 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 |