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

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

Returns a new instance of Item.


1974
1975
1976
# File 'generated/google/apis/books_v1/classes.rb', line 1974

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

Instance Attribute Details

#download_urlString

Corresponds to the JSON property download_url

Returns:

  • (String)

1952
1953
1954
# File 'generated/google/apis/books_v1/classes.rb', line 1952

def download_url
  @download_url
end

#encrypted_keyString

Corresponds to the JSON property encrypted_key

Returns:

  • (String)

1957
1958
1959
# File 'generated/google/apis/books_v1/classes.rb', line 1957

def encrypted_key
  @encrypted_key
end

#languageString

Corresponds to the JSON property language

Returns:

  • (String)

1962
1963
1964
# File 'generated/google/apis/books_v1/classes.rb', line 1962

def language
  @language
end

#sizeString

Corresponds to the JSON property size

Returns:

  • (String)

1967
1968
1969
# File 'generated/google/apis/books_v1/classes.rb', line 1967

def size
  @size
end

#versionString

Corresponds to the JSON property version

Returns:

  • (String)

1972
1973
1974
# File 'generated/google/apis/books_v1/classes.rb', line 1972

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1979
1980
1981
1982
1983
1984
1985
# File 'generated/google/apis/books_v1/classes.rb', line 1979

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