Class: Google::Apis::YoutubeV3::MembershipsDetails

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MembershipsDetails

Returns a new instance of MembershipsDetails.



5412
5413
5414
# File 'generated/google/apis/youtube_v3/classes.rb', line 5412

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

Instance Attribute Details

#accessible_levelsArray<String>

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

Returns:

  • (Array<String>)


5370
5371
5372
# File 'generated/google/apis/youtube_v3/classes.rb', line 5370

def accessible_levels
  @accessible_levels
end

#highest_accessible_levelString

The highest level that the user has access to at the moment. Corresponds to the JSON property highestAccessibleLevel

Returns:

  • (String)


5375
5376
5377
# File 'generated/google/apis/youtube_v3/classes.rb', line 5375

def highest_accessible_level
  @highest_accessible_level
end

#highest_accessible_level_display_nameString

Display name for the highest level that the user has access to at the moment. Corresponds to the JSON property highestAccessibleLevelDisplayName

Returns:

  • (String)


5380
5381
5382
# File 'generated/google/apis/youtube_v3/classes.rb', line 5380

def highest_accessible_level_display_name
  @highest_accessible_level_display_name
end

#member_sinceString

The date and time when the user became a continuous member across all levels. Corresponds to the JSON property memberSince

Returns:

  • (String)


5385
5386
5387
# File 'generated/google/apis/youtube_v3/classes.rb', line 5385

def member_since
  @member_since
end

#member_since_current_levelString

The date and time when the user started to continuously have access to the currently highest level. Corresponds to the JSON property memberSinceCurrentLevel

Returns:

  • (String)


5391
5392
5393
# File 'generated/google/apis/youtube_v3/classes.rb', line 5391

def member_since_current_level
  @member_since_current_level
end

#member_total_durationFixnum

The cumulative time the user has been a member across all levels in complete months (the time is rounded down to the nearest integer). Corresponds to the JSON property memberTotalDuration

Returns:

  • (Fixnum)


5397
5398
5399
# File 'generated/google/apis/youtube_v3/classes.rb', line 5397

def member_total_duration
  @member_total_duration
end

#member_total_duration_current_levelFixnum

The cumulative time the user has had access to the currently highest level in complete months (the time is rounded down to the nearest integer). Corresponds to the JSON property memberTotalDurationCurrentLevel

Returns:

  • (Fixnum)


5403
5404
5405
# File 'generated/google/apis/youtube_v3/classes.rb', line 5403

def member_total_duration_current_level
  @member_total_duration_current_level
end

#purchased_levelString

The highest level that the user has access to at the moment. DEPRECATED - highest_accessible_level should be used instead. This will be removed after we make sure there are no 3rd parties relying on it. Corresponds to the JSON property purchasedLevel

Returns:

  • (String)


5410
5411
5412
# File 'generated/google/apis/youtube_v3/classes.rb', line 5410

def purchased_level
  @purchased_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
# File 'generated/google/apis/youtube_v3/classes.rb', line 5417

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)
  @member_since = args[:member_since] if args.key?(:member_since)
  @member_since_current_level = args[:member_since_current_level] if args.key?(:member_since_current_level)
  @member_total_duration = args[:member_total_duration] if args.key?(:member_total_duration)
  @member_total_duration_current_level = args[:member_total_duration_current_level] if args.key?(:member_total_duration_current_level)
  @purchased_level = args[:purchased_level] if args.key?(:purchased_level)
end