Class: Google::Apis::YoutubeV3::MembershipsLevelSnippet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipsLevelSnippet

Returns a new instance of MembershipsLevelSnippet.



5360
5361
5362
# File 'generated/google/apis/youtube_v3/classes.rb', line 5360

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

Instance Attribute Details

#creator_channel_idString

The id of the channel that's offering channel memberships. Corresponds to the JSON property creatorChannelId

Returns:

  • (String)


5353
5354
5355
# File 'generated/google/apis/youtube_v3/classes.rb', line 5353

def creator_channel_id
  @creator_channel_id
end

#level_detailsGoogle::Apis::YoutubeV3::LevelDetails

Details about the pricing level. Corresponds to the JSON property levelDetails



5358
5359
5360
# File 'generated/google/apis/youtube_v3/classes.rb', line 5358

def level_details
  @level_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5365
5366
5367
5368
# File 'generated/google/apis/youtube_v3/classes.rb', line 5365

def update!(**args)
  @creator_channel_id = args[:creator_channel_id] if args.key?(:creator_channel_id)
  @level_details = args[:level_details] if args.key?(:level_details)
end