class Google::Apis::YoutubeV3::MembershipsDetails

Attributes

accessible_levels[RW]

Ids of all levels that the user has access to. This includes the currently active level and all other levels that are included because of a higher purchase. Corresponds to the JSON property `accessibleLevels` @return [Array<String>]

highest_accessible_level[RW]

Id of the highest level that the user has access to at the moment. Corresponds to the JSON property `highestAccessibleLevel` @return [String]

highest_accessible_level_display_name[RW]

Display name for the highest level that the user has access to at the moment. Corresponds to the JSON property `highestAccessibleLevelDisplayName` @return [String]

memberships_duration[RW]

Data about memberships duration without taking into consideration pricing levels. Corresponds to the JSON property `membershipsDuration` @return [Google::Apis::YoutubeV3::MembershipsDuration]

memberships_duration_at_levels[RW]

Data about memberships duration on particular pricing levels. Corresponds to the JSON property `membershipsDurationAtLevels` @return [Array<Google::Apis::YoutubeV3::MembershipsDurationAtLevel>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 5262
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_v3/classes.rb, line 5267
def update!(**args)
  @accessible_levels = args[:accessible_levels] if args.key?(:accessible_levels)
  @highest_accessible_level = args[:highest_accessible_level] if args.key?(:highest_accessible_level)
  @highest_accessible_level_display_name = args[:highest_accessible_level_display_name] if args.key?(:highest_accessible_level_display_name)
  @memberships_duration = args[:memberships_duration] if args.key?(:memberships_duration)
  @memberships_duration_at_levels = args[:memberships_duration_at_levels] if args.key?(:memberships_duration_at_levels)
end