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



5378
5379
5380
# File 'generated/google/apis/youtube_v3/classes.rb', line 5378

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

Instance Attribute Details

#accessible_levelsArray<String>

All levels that the user has access to. This includes the purchased level and all other levels that are included because of a higher purchase. Corresponds to the JSON property accessibleLevels

Returns:

  • (Array<String>)


5348
5349
5350
# File 'generated/google/apis/youtube_v3/classes.rb', line 5348

def accessible_levels
  @accessible_levels
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)


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

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)


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

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)


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

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)


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

def member_total_duration_current_level
  @member_total_duration_current_level
end

#purchased_levelString

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

Returns:

  • (String)


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

def purchased_level
  @purchased_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5383
5384
5385
5386
5387
5388
5389
5390
# File 'generated/google/apis/youtube_v3/classes.rb', line 5383

def update!(**args)
  @accessible_levels = args[:accessible_levels] if args.key?(:accessible_levels)
  @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