class Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Book

A single book in the library.

Attributes

author[RW]

The name of the book author. Corresponds to the JSON property `author` @return [String]

name[RW]

The resource name of the book. Book names have the form `shelves/`shelf_id`/ books/`book_id“. The name is ignored when creating a book. Corresponds to the JSON property `name` @return [String]

read[RW]

Value indicating whether the book has been read. Corresponds to the JSON property `read` @return [Boolean]

read?[RW]

Value indicating whether the book has been read. Corresponds to the JSON property `read` @return [Boolean]

title[RW]

The title of the book. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/libraryagent_v1/classes.rb, line 51
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/libraryagent_v1/classes.rb, line 56
def update!(**args)
  @author = args[:author] if args.key?(:author)
  @name = args[:name] if args.key?(:name)
  @read = args[:read] if args.key?(:read)
  @title = args[:title] if args.key?(:title)
end