Class: Google::Apis::YoutubeV3::Entity
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::Entity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Corresponds to the JSON property
id
. -
#type_id ⇒ String
Corresponds to the JSON property
typeId
. -
#url ⇒ String
Corresponds to the JSON property
url
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entity
constructor
A new instance of Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Entity
Returns a new instance of Entity.
2883 2884 2885 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2883 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Corresponds to the JSON property id
2871 2872 2873 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2871 def id @id end |
#type_id ⇒ String
Corresponds to the JSON property typeId
2876 2877 2878 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2876 def type_id @type_id end |
#url ⇒ String
Corresponds to the JSON property url
2881 2882 2883 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2881 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2888 2889 2890 2891 2892 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2888 def update!(**args) @id = args[:id] if args.key?(:id) @type_id = args[:type_id] if args.key?(:type_id) @url = args[:url] if args.key?(:url) end |