Class: Google::Apis::BooksV1::Category

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

Defined Under Namespace

Classes: Item

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

Returns a new instance of Category.


614
615
616
# File 'generated/google/apis/books_v1/classes.rb', line 614

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

Instance Attribute Details

#itemsArray<Google::Apis::BooksV1::Category::Item>

A list of onboarding categories. Corresponds to the JSON property items


607
608
609
# File 'generated/google/apis/books_v1/classes.rb', line 607

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)

612
613
614
# File 'generated/google/apis/books_v1/classes.rb', line 612

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


619
620
621
622
# File 'generated/google/apis/books_v1/classes.rb', line 619

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