Class: Google::Apis::BooksV1::LayerSummaries

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

Returns a new instance of LayerSummaries



1816
1817
1818
# File 'generated/google/apis/books_v1/classes.rb', line 1816

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

Instance Attribute Details

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

A list of layer summary items. Corresponds to the JSON property items



1804
1805
1806
# File 'generated/google/apis/books_v1/classes.rb', line 1804

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


1809
1810
1811
# File 'generated/google/apis/books_v1/classes.rb', line 1809

def kind
  @kind
end

#total_itemsFixnum

The total number of layer summaries found. Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)


1814
1815
1816
# File 'generated/google/apis/books_v1/classes.rb', line 1814

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1821
1822
1823
1824
1825
# File 'generated/google/apis/books_v1/classes.rb', line 1821

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