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

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

Defined Under Namespace

Classes: Membership

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FamilyInfo

Returns a new instance of FamilyInfo.



1585
1586
1587
# File 'lib/google/apis/books_v1/classes.rb', line 1585

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

Instance Attribute Details

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


1578
1579
1580
# File 'lib/google/apis/books_v1/classes.rb', line 1578

def kind
  @kind
end

#membershipGoogle::Apis::BooksV1::FamilyInfo::Membership

Family membership info of the user that made the request. Corresponds to the JSON property membership



1583
1584
1585
# File 'lib/google/apis/books_v1/classes.rb', line 1583

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1590
1591
1592
1593
# File 'lib/google/apis/books_v1/classes.rb', line 1590

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @membership = args[:membership] if args.key?(:membership)
end