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.



3145
3146
3147
# File 'lib/google/apis/youtube_v3/classes.rb', line 3145

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


3133
3134
3135
# File 'lib/google/apis/youtube_v3/classes.rb', line 3133

def id
  @id
end

#type_idString

Corresponds to the JSON property typeId

Returns:

  • (String)


3138
3139
3140
# File 'lib/google/apis/youtube_v3/classes.rb', line 3138

def type_id
  @type_id
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


3143
3144
3145
# File 'lib/google/apis/youtube_v3/classes.rb', line 3143

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3150
3151
3152
3153
3154
# File 'lib/google/apis/youtube_v3/classes.rb', line 3150

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