Class: Google::Apis::YoutubeV3::MembershipsDuration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipsDuration

Returns a new instance of MembershipsDuration.



5608
5609
5610
# File 'lib/google/apis/youtube_v3/classes.rb', line 5608

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

Instance Attribute Details

#member_sinceString

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

Returns:

  • (String)


5600
5601
5602
# File 'lib/google/apis/youtube_v3/classes.rb', line 5600

def member_since
  @member_since
end

#member_total_duration_monthsFixnum

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

Returns:

  • (Fixnum)


5606
5607
5608
# File 'lib/google/apis/youtube_v3/classes.rb', line 5606

def member_total_duration_months
  @member_total_duration_months
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5613
5614
5615
5616
# File 'lib/google/apis/youtube_v3/classes.rb', line 5613

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