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.



3079
3080
3081
# File 'lib/google/apis/youtube_v3/classes.rb', line 3079

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


3067
3068
3069
# File 'lib/google/apis/youtube_v3/classes.rb', line 3067

def id
  @id
end

#type_idString

Corresponds to the JSON property typeId

Returns:

  • (String)


3072
3073
3074
# File 'lib/google/apis/youtube_v3/classes.rb', line 3072

def type_id
  @type_id
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


3077
3078
3079
# File 'lib/google/apis/youtube_v3/classes.rb', line 3077

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3084
3085
3086
3087
3088
# File 'lib/google/apis/youtube_v3/classes.rb', line 3084

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