Class: Google::Apis::YoutubeV3::MembershipsDuration
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::MembershipsDuration
- 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
-
#member_since ⇒ String
The date and time when the user became a continuous member across all levels.
-
#member_total_duration_months ⇒ 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).
Instance Method Summary collapse
-
#initialize(**args) ⇒ MembershipsDuration
constructor
A new instance of MembershipsDuration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MembershipsDuration
Returns a new instance of MembershipsDuration.
5427 5428 5429 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5427 def initialize(**args) update!(**args) end |
Instance Attribute Details
#member_since ⇒ String
The date and time when the user became a continuous member across all levels.
Corresponds to the JSON property memberSince
5419 5420 5421 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5419 def member_since @member_since end |
#member_total_duration_months ⇒ 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 memberTotalDurationMonths
5425 5426 5427 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5425 def member_total_duration_months @member_total_duration_months end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5432 5433 5434 5435 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5432 def update!(**args) @member_since = args[:member_since] if args.key?(:member_since) @member_total_duration_months = args[:member_total_duration_months] if args.key?(:member_total_duration_months) end |