Class: Google::Apis::YoutubeV3::MembershipsDurationAtLevel

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

Constructor Details

#initialize(**args) ⇒ MembershipsDurationAtLevel

Returns a new instance of MembershipsDurationAtLevel.



5249
5250
5251
# File 'generated/google/apis/youtube_v3/classes.rb', line 5249

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

Instance Attribute Details

#levelString

Pricing level ID. Corresponds to the JSON property level

Returns:

  • (String)


5236
5237
5238
# File 'generated/google/apis/youtube_v3/classes.rb', line 5236

def level
  @level
end

#member_sinceString

The date and time when the user became a continuous member for the given level. Corresponds to the JSON property memberSince

Returns:

  • (String)


5241
5242
5243
# File 'generated/google/apis/youtube_v3/classes.rb', line 5241

def member_since
  @member_since
end

#member_total_duration_monthsFixnum

The cumulative time the user has been a member for the given level in complete months (the time is rounded down to the nearest integer). Corresponds to the JSON property memberTotalDurationMonths

Returns:

  • (Fixnum)


5247
5248
5249
# File 'generated/google/apis/youtube_v3/classes.rb', line 5247

def member_total_duration_months
  @member_total_duration_months
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5254
5255
5256
5257
5258
# File 'generated/google/apis/youtube_v3/classes.rb', line 5254

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