Class: Google::Apis::BooksV1::Annotations

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Annotations

Returns a new instance of Annotations.



287
288
289
# File 'lib/google/apis/books_v1/classes.rb', line 287

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

Instance Attribute Details

#itemsArray<Google::Apis::BooksV1::Annotation>

A list of annotations. Corresponds to the JSON property items



268
269
270
# File 'lib/google/apis/books_v1/classes.rb', line 268

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


273
274
275
# File 'lib/google/apis/books_v1/classes.rb', line 273

def kind
  @kind
end

#next_page_tokenString

Token to pass in for pagination for the next page. This will not be present if this request does not have more results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


279
280
281
# File 'lib/google/apis/books_v1/classes.rb', line 279

def next_page_token
  @next_page_token
end

#total_itemsFixnum

Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated. Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)


285
286
287
# File 'lib/google/apis/books_v1/classes.rb', line 285

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



292
293
294
295
296
297
# File 'lib/google/apis/books_v1/classes.rb', line 292

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