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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item.



2106
2107
2108
# File 'lib/google/apis/books_v1/classes.rb', line 2106

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

Instance Attribute Details

#download_urlString

Corresponds to the JSON property download_url

Returns:

  • (String)


2084
2085
2086
# File 'lib/google/apis/books_v1/classes.rb', line 2084

def download_url
  @download_url
end

#encrypted_keyString

Corresponds to the JSON property encrypted_key

Returns:

  • (String)


2089
2090
2091
# File 'lib/google/apis/books_v1/classes.rb', line 2089

def encrypted_key
  @encrypted_key
end

#languageString

Corresponds to the JSON property language

Returns:

  • (String)


2094
2095
2096
# File 'lib/google/apis/books_v1/classes.rb', line 2094

def language
  @language
end

#sizeFixnum

Corresponds to the JSON property size

Returns:

  • (Fixnum)


2099
2100
2101
# File 'lib/google/apis/books_v1/classes.rb', line 2099

def size
  @size
end

#versionFixnum

Corresponds to the JSON property version

Returns:

  • (Fixnum)


2104
2105
2106
# File 'lib/google/apis/books_v1/classes.rb', line 2104

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2111
2112
2113
2114
2115
2116
2117
# File 'lib/google/apis/books_v1/classes.rb', line 2111

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