Class: Google::Apis::BooksV1::Offers::Item::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.



2265
2266
2267
# File 'generated/google/apis/books_v1/classes.rb', line 2265

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

Instance Attribute Details

#authorString

Corresponds to the JSON property author

Returns:

  • (String)


2238
2239
2240
# File 'generated/google/apis/books_v1/classes.rb', line 2238

def author
  @author
end

Corresponds to the JSON property canonicalVolumeLink

Returns:

  • (String)


2243
2244
2245
# File 'generated/google/apis/books_v1/classes.rb', line 2243

def canonical_volume_link
  @canonical_volume_link
end

#cover_urlString

Corresponds to the JSON property coverUrl

Returns:

  • (String)


2248
2249
2250
# File 'generated/google/apis/books_v1/classes.rb', line 2248

def cover_url
  @cover_url
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


2253
2254
2255
# File 'generated/google/apis/books_v1/classes.rb', line 2253

def description
  @description
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2258
2259
2260
# File 'generated/google/apis/books_v1/classes.rb', line 2258

def title
  @title
end

#volume_idString

Corresponds to the JSON property volumeId

Returns:

  • (String)


2263
2264
2265
# File 'generated/google/apis/books_v1/classes.rb', line 2263

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2270
2271
2272
2273
2274
2275
2276
2277
# File 'generated/google/apis/books_v1/classes.rb', line 2270

def update!(**args)
  @author = args[:author] if args.key?(:author)
  @canonical_volume_link = args[:canonical_volume_link] if args.key?(:canonical_volume_link)
  @cover_url = args[:cover_url] if args.key?(:cover_url)
  @description = args[:description] if args.key?(:description)
  @title = args[:title] if args.key?(:title)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end