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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/books_v1/classes.rb,
lib/google/apis/books_v1/representations.rb,
lib/google/apis/books_v1/representations.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Metadata

Returns a new instance of Metadata.



2067
2068
2069
# File 'lib/google/apis/books_v1/classes.rb', line 2067

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



2060
2061
2062
# File 'lib/google/apis/books_v1/classes.rb', line 2060

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


2065
2066
2067
# File 'lib/google/apis/books_v1/classes.rb', line 2065

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2072
2073
2074
2075
# File 'lib/google/apis/books_v1/classes.rb', line 2072

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