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



2327
2328
2329
# File 'lib/google/apis/books_v1/classes.rb', line 2327

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

Instance Attribute Details

#authorString

Corresponds to the JSON property author

Returns:

  • (String)


2300
2301
2302
# File 'lib/google/apis/books_v1/classes.rb', line 2300

def author
  @author
end

Corresponds to the JSON property canonicalVolumeLink

Returns:

  • (String)


2305
2306
2307
# File 'lib/google/apis/books_v1/classes.rb', line 2305

def canonical_volume_link
  @canonical_volume_link
end

#cover_urlString

Corresponds to the JSON property coverUrl

Returns:

  • (String)


2310
2311
2312
# File 'lib/google/apis/books_v1/classes.rb', line 2310

def cover_url
  @cover_url
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


2315
2316
2317
# File 'lib/google/apis/books_v1/classes.rb', line 2315

def description
  @description
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


2320
2321
2322
# File 'lib/google/apis/books_v1/classes.rb', line 2320

def title
  @title
end

#volume_idString

Corresponds to the JSON property volumeId

Returns:

  • (String)


2325
2326
2327
# File 'lib/google/apis/books_v1/classes.rb', line 2325

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2332
2333
2334
2335
2336
2337
2338
2339
# File 'lib/google/apis/books_v1/classes.rb', line 2332

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