Class: Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1ListBooksResponse
- Inherits:
-
Object
- Object
- Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1ListBooksResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/libraryagent_v1/classes.rb,
generated/google/apis/libraryagent_v1/representations.rb,
generated/google/apis/libraryagent_v1/representations.rb
Overview
Response message for LibraryAgent.ListBooks.
Instance Attribute Summary collapse
-
#books ⇒ Array<Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Book>
The list of books.
-
#next_page_token ⇒ String
A token to retrieve next page of results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleExampleLibraryagentV1ListBooksResponse
constructor
A new instance of GoogleExampleLibraryagentV1ListBooksResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleExampleLibraryagentV1ListBooksResponse
Returns a new instance of GoogleExampleLibraryagentV1ListBooksResponse
83 84 85 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 83 def initialize(**args) update!(**args) end |
Instance Attribute Details
#books ⇒ Array<Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Book>
The list of books.
Corresponds to the JSON property books
72 73 74 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 72 def books @books end |
#next_page_token ⇒ String
A token to retrieve next page of results.
Pass this value in the
ListBooksRequest.page_token
field in the subsequent call to ListBooks
method to retrieve the next
page of results.
Corresponds to the JSON property nextPageToken
81 82 83 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 81 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
88 89 90 91 |
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 88 def update!(**args) @books = args[:books] if args.key?(:books) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end |