Class: Google::Apis::BooksV1::Bookshelves

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

Constructor Details

#initialize(**args) ⇒ Bookshelves

Returns a new instance of Bookshelves.



589
590
591
# File 'generated/google/apis/books_v1/classes.rb', line 589

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

Instance Attribute Details

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

A list of bookshelves. Corresponds to the JSON property items



582
583
584
# File 'generated/google/apis/books_v1/classes.rb', line 582

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


587
588
589
# File 'generated/google/apis/books_v1/classes.rb', line 587

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



594
595
596
597
# File 'generated/google/apis/books_v1/classes.rb', line 594

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