Class: Google::Apis::YoutubeV3::MembershipsDetails
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::MembershipsDetails
- 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
-
#accessible_levels ⇒ Array<String>
All levels that the user has access to.
-
#highest_accessible_level ⇒ String
The highest level that the user has access to at the moment.
-
#highest_accessible_level_display_name ⇒ String
Display name for the highest level that the user has access to at the moment.
-
#member_since ⇒ String
The date and time when the user became a continuous member across all levels.
-
#member_since_current_level ⇒ String
The date and time when the user started to continuously have access to the currently highest level.
-
#member_total_duration ⇒ Fixnum
The cumulative time the user has been a member across all levels in complete months (the time is rounded down to the nearest integer).
-
#member_total_duration_current_level ⇒ Fixnum
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).
-
#purchased_level ⇒ String
The highest level that the user has access to at the moment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MembershipsDetails
constructor
A new instance of MembershipsDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_levels ⇒ Array<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
5370 5371 5372 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5370 def accessible_levels @accessible_levels end |
#highest_accessible_level ⇒ String
The highest level that the user has access to at the moment.
Corresponds to the JSON property highestAccessibleLevel
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_name ⇒ String
Display name for the highest level that the user has access to at the moment.
Corresponds to the JSON property highestAccessibleLevelDisplayName
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_since ⇒ String
The date and time when the user became a continuous member across all levels.
Corresponds to the JSON property memberSince
5385 5386 5387 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5385 def member_since @member_since end |
#member_since_current_level ⇒ String
The date and time when the user started to continuously have access to the
currently highest level.
Corresponds to the JSON property memberSinceCurrentLevel
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_duration ⇒ Fixnum
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
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_level ⇒ Fixnum
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
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_level ⇒ String
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
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 |