Class: Google::Apis::YoutubeV3::Entity
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::Entity
- 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
-
#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.
2930 2931 2932 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Corresponds to the JSON property id
2918 2919 2920 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2918 def id @id end |
#type_id ⇒ String
Corresponds to the JSON property typeId
2923 2924 2925 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2923 def type_id @type_id end |
#url ⇒ String
Corresponds to the JSON property url
2928 2929 2930 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2928 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2935 2936 2937 2938 2939 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2935 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 |