Class: Google::Apis::BooksV1::FamilyInfo::Membership

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Membership

Returns a new instance of Membership.



1632
1633
1634
# File 'generated/google/apis/books_v1/classes.rb', line 1632

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

Instance Attribute Details

#acquire_permissionString

Restrictions on user buying and acquiring content. Corresponds to the JSON property acquirePermission

Returns:

  • (String)


1609
1610
1611
# File 'generated/google/apis/books_v1/classes.rb', line 1609

def acquire_permission
  @acquire_permission
end

#age_groupString

The age group of the user. Corresponds to the JSON property ageGroup

Returns:

  • (String)


1614
1615
1616
# File 'generated/google/apis/books_v1/classes.rb', line 1614

def age_group
  @age_group
end

#allowed_maturity_ratingString

The maximum allowed maturity rating for the user. Corresponds to the JSON property allowedMaturityRating

Returns:

  • (String)


1619
1620
1621
# File 'generated/google/apis/books_v1/classes.rb', line 1619

def allowed_maturity_rating
  @allowed_maturity_rating
end

#is_in_familyBoolean Also known as: is_in_family?

Corresponds to the JSON property isInFamily

Returns:

  • (Boolean)


1624
1625
1626
# File 'generated/google/apis/books_v1/classes.rb', line 1624

def is_in_family
  @is_in_family
end

#roleString

The role of the user in the family. Corresponds to the JSON property role

Returns:

  • (String)


1630
1631
1632
# File 'generated/google/apis/books_v1/classes.rb', line 1630

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1637
1638
1639
1640
1641
1642
1643
# File 'generated/google/apis/books_v1/classes.rb', line 1637

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