Class: Google::Apis::BooksV1::Metadata::Item
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Metadata::Item
- 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
-
#download_url ⇒ String
Corresponds to the JSON property
download_url
. -
#encrypted_key ⇒ String
Corresponds to the JSON property
encrypted_key
. -
#language ⇒ String
Corresponds to the JSON property
language
. -
#size ⇒ Fixnum
Corresponds to the JSON property
size
. -
#version ⇒ Fixnum
Corresponds to the JSON property
version
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Item
constructor
A new instance of Item.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Item
Returns a new instance of Item
2044 2045 2046 |
# File 'generated/google/apis/books_v1/classes.rb', line 2044 def initialize(**args) update!(**args) end |
Instance Attribute Details
#download_url ⇒ String
Corresponds to the JSON property download_url
2022 2023 2024 |
# File 'generated/google/apis/books_v1/classes.rb', line 2022 def download_url @download_url end |
#encrypted_key ⇒ String
Corresponds to the JSON property encrypted_key
2027 2028 2029 |
# File 'generated/google/apis/books_v1/classes.rb', line 2027 def encrypted_key @encrypted_key end |
#language ⇒ String
Corresponds to the JSON property language
2032 2033 2034 |
# File 'generated/google/apis/books_v1/classes.rb', line 2032 def language @language end |
#size ⇒ Fixnum
Corresponds to the JSON property size
2037 2038 2039 |
# File 'generated/google/apis/books_v1/classes.rb', line 2037 def size @size end |
#version ⇒ Fixnum
Corresponds to the JSON property version
2042 2043 2044 |
# File 'generated/google/apis/books_v1/classes.rb', line 2042 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2049 2050 2051 2052 2053 2054 2055 |
# File 'generated/google/apis/books_v1/classes.rb', line 2049 def update!(**args) @download_url = args[:download_url] if args.key?(:download_url) @encrypted_key = args[:encrypted_key] if args.key?(:encrypted_key) @language = args[:language] if args.key?(:language) @size = args[:size] if args.key?(:size) @version = args[:version] if args.key?(:version) end |