Class: Google::Apis::YoutubeV3::MembershipsDetails
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::YoutubeV3::MembershipsDetails
 
 
- 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
- 
  
    
      #accessible_levels  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Ids of all levels that the user has access to.
 - 
  
    
      #highest_accessible_level  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Id of 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.
 - 
  
    
      #memberships_duration  ⇒ Google::Apis::YoutubeV3::MembershipsDuration 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Data about memberships duration without taking into consideration pricing levels.
 - 
  
    
      #memberships_duration_at_levels  ⇒ Array<Google::Apis::YoutubeV3::MembershipsDurationAtLevel> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Data about memberships duration on particular pricing levels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MembershipsDetails 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of MembershipsDetails.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ MembershipsDetails
Returns a new instance of MembershipsDetails.
      5579 5580 5581  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5579 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#accessible_levels ⇒ Array<String>
Ids of 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
      5556 5557 5558  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5556 def accessible_levels @accessible_levels end  | 
  
#highest_accessible_level ⇒ String
Id of the highest level that the user has access to at the moment.
Corresponds to the JSON property highestAccessibleLevel
      5561 5562 5563  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5561 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
      5566 5567 5568  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5566 def highest_accessible_level_display_name @highest_accessible_level_display_name end  | 
  
#memberships_duration ⇒ Google::Apis::YoutubeV3::MembershipsDuration
Data about memberships duration without taking into consideration pricing
levels.
Corresponds to the JSON property membershipsDuration
      5572 5573 5574  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5572 def memberships_duration @memberships_duration end  | 
  
#memberships_duration_at_levels ⇒ Array<Google::Apis::YoutubeV3::MembershipsDurationAtLevel>
Data about memberships duration on particular pricing levels.
Corresponds to the JSON property membershipsDurationAtLevels
      5577 5578 5579  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5577 def memberships_duration_at_levels @memberships_duration_at_levels end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5584 5585 5586 5587 5588 5589 5590  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 5584 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) @memberships_duration = args[:memberships_duration] if args.key?(:memberships_duration) @memberships_duration_at_levels = args[:memberships_duration_at_levels] if args.key?(:memberships_duration_at_levels) end  |