Class: Google::Apis::BooksV1::Volumes

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

Returns a new instance of Volumes.



4463
4464
4465
# File 'generated/google/apis/books_v1/classes.rb', line 4463

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

Instance Attribute Details

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

A list of volumes. Corresponds to the JSON property items

Returns:



4450
4451
4452
# File 'generated/google/apis/books_v1/classes.rb', line 4450

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


4455
4456
4457
# File 'generated/google/apis/books_v1/classes.rb', line 4455

def kind
  @kind
end

#total_itemsFixnum

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

Returns:

  • (Fixnum)


4461
4462
4463
# File 'generated/google/apis/books_v1/classes.rb', line 4461

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4468
4469
4470
4471
4472
# File 'generated/google/apis/books_v1/classes.rb', line 4468

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