Class: Google::Apis::BooksV1::FamilyInfo::Membership
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::BooksV1::FamilyInfo::Membership
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb 
Overview
Family membership info of the user that made the request.
Instance Attribute Summary collapse
- 
  
    
      #acquire_permission  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Restrictions on user buying and acquiring content.
 - 
  
    
      #age_group  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The age group of the user.
 - 
  
    
      #allowed_maturity_rating  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The maximum allowed maturity rating for the user.
 - 
  
    
      #is_in_family  ⇒ Boolean 
    
    
      (also: #is_in_family?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Corresponds to the JSON property
isInFamily. - 
  
    
      #role  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The role of the user in the family.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Membership 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Membership.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Membership
Returns a new instance of Membership
      1608 1609 1610  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1608 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#acquire_permission ⇒ String
Restrictions on user buying and acquiring content.
Corresponds to the JSON property acquirePermission
      1585 1586 1587  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1585 def @acquire_permission end  | 
  
#age_group ⇒ String
The age group of the user.
Corresponds to the JSON property ageGroup
      1590 1591 1592  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1590 def age_group @age_group end  | 
  
#allowed_maturity_rating ⇒ String
The maximum allowed maturity rating for the user.
Corresponds to the JSON property allowedMaturityRating
      1595 1596 1597  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1595 def @allowed_maturity_rating end  | 
  
#is_in_family ⇒ Boolean Also known as: is_in_family?
Corresponds to the JSON property isInFamily
      1600 1601 1602  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1600 def is_in_family @is_in_family end  | 
  
#role ⇒ String
The role of the user in the family.
Corresponds to the JSON property role
      1606 1607 1608  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1606 def role @role end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1613 1614 1615 1616 1617 1618 1619  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 1613 def update!(**args) @acquire_permission = args[:acquire_permission] if args.key?(:acquire_permission) @age_group = args[:age_group] if args.key?(:age_group) @allowed_maturity_rating = args[:allowed_maturity_rating] if args.key?(:allowed_maturity_rating) @is_in_family = args[:is_in_family] if args.key?(:is_in_family) @role = args[:role] if args.key?(:role) end  |