Class: Google::Apis::BooksV1::Volumeannotations

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

Returns a new instance of Volumeannotations.



4409
4410
4411
# File 'lib/google/apis/books_v1/classes.rb', line 4409

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

Instance Attribute Details

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

A list of volume annotations. Corresponds to the JSON property items



4383
4384
4385
# File 'lib/google/apis/books_v1/classes.rb', line 4383

def items
  @items
end

#kindString

Resource type Corresponds to the JSON property kind

Returns:

  • (String)


4388
4389
4390
# File 'lib/google/apis/books_v1/classes.rb', line 4388

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)


4394
4395
4396
# File 'lib/google/apis/books_v1/classes.rb', line 4394

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)


4399
4400
4401
# File 'lib/google/apis/books_v1/classes.rb', line 4399

def total_items
  @total_items
end

#versionString

The version string for all of the volume annotations in this layer (not just the ones in this response). Note: the version string doesn't apply to the annotation data, just the information in this response (e.g. the location of annotations in the book). Corresponds to the JSON property version

Returns:

  • (String)


4407
4408
4409
# File 'lib/google/apis/books_v1/classes.rb', line 4407

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4414
4415
4416
4417
4418
4419
4420
# File 'lib/google/apis/books_v1/classes.rb', line 4414

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)
  @version = args[:version] if args.key?(:version)
end