Class: Google::Apis::BooksV1::Metadata

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

Returns a new instance of Metadata



1936
1937
1938
# File 'generated/google/apis/books_v1/classes.rb', line 1936

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

Instance Attribute Details

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

A list of offline dictionary metadata. Corresponds to the JSON property items



1929
1930
1931
# File 'generated/google/apis/books_v1/classes.rb', line 1929

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


1934
1935
1936
# File 'generated/google/apis/books_v1/classes.rb', line 1934

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1941
1942
1943
1944
# File 'generated/google/apis/books_v1/classes.rb', line 1941

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