Class: Google::Apis::BooksV1::AnnotationsData

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

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) ⇒ AnnotationsData

Returns a new instance of AnnotationsData.


393
394
395
# File 'generated/google/apis/books_v1/classes.rb', line 393

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

Instance Attribute Details

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

A list of Annotation Data. Corresponds to the JSON property items


375
376
377
# File 'generated/google/apis/books_v1/classes.rb', line 375

def items
  @items
end

#kindString

Resource type Corresponds to the JSON property kind

Returns:

  • (String)

380
381
382
# File 'generated/google/apis/books_v1/classes.rb', line 380

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)

386
387
388
# File 'generated/google/apis/books_v1/classes.rb', line 386

def next_page_token
  @next_page_token
end

#total_itemsFixnum

The total number of volume annotations found. Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)

391
392
393
# File 'generated/google/apis/books_v1/classes.rb', line 391

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


398
399
400
401
402
403
# File 'generated/google/apis/books_v1/classes.rb', line 398

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