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.
-
#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 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
5372 5373 5374 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accessible_levels ⇒ Array<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
5342 5343 5344 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5342 def accessible_levels @accessible_levels end |
#member_since ⇒ String
The date and time when the user became a continuous member across all levels.
Corresponds to the JSON property memberSince
5347 5348 5349 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5347 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
5353 5354 5355 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5353 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
5359 5360 5361 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5359 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
5365 5366 5367 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5365 def member_total_duration_current_level @member_total_duration_current_level end |
#purchased_level ⇒ String
The highest level the user has access to at the moment.
Corresponds to the JSON property purchasedLevel
5370 5371 5372 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5370 def purchased_level @purchased_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5377 5378 5379 5380 5381 5382 5383 5384 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5377 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 |