Class: Google::Apis::YoutubeV3::Entity

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) ⇒ Entity

Returns a new instance of Entity.



2877
2878
2879
# File 'lib/google/apis/youtube_v3/classes.rb', line 2877

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


2865
2866
2867
# File 'lib/google/apis/youtube_v3/classes.rb', line 2865

def id
  @id
end

#type_idString

Corresponds to the JSON property typeId

Returns:

  • (String)


2870
2871
2872
# File 'lib/google/apis/youtube_v3/classes.rb', line 2870

def type_id
  @type_id
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


2875
2876
2877
# File 'lib/google/apis/youtube_v3/classes.rb', line 2875

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2882
2883
2884
2885
2886
# File 'lib/google/apis/youtube_v3/classes.rb', line 2882

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