Class: Google::Apis::BooksV1::Discoveryclusters::Cluster

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

Defined Under Namespace

Classes: BannerWithContentContainer

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

Returns a new instance of Cluster.


1371
1372
1373
# File 'generated/google/apis/books_v1/classes.rb', line 1371

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

Instance Attribute Details

Corresponds to the JSON property banner_with_content_container


1344
1345
1346
# File 'generated/google/apis/books_v1/classes.rb', line 1344

def banner_with_content_container
  @banner_with_content_container
end

#sub_titleString

Corresponds to the JSON property subTitle

Returns:

  • (String)

1349
1350
1351
# File 'generated/google/apis/books_v1/classes.rb', line 1349

def sub_title
  @sub_title
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)

1354
1355
1356
# File 'generated/google/apis/books_v1/classes.rb', line 1354

def title
  @title
end

#total_volumesFixnum

Corresponds to the JSON property totalVolumes

Returns:

  • (Fixnum)

1359
1360
1361
# File 'generated/google/apis/books_v1/classes.rb', line 1359

def total_volumes
  @total_volumes
end

#uidString

Corresponds to the JSON property uid

Returns:

  • (String)

1364
1365
1366
# File 'generated/google/apis/books_v1/classes.rb', line 1364

def uid
  @uid
end

#volumesArray<Google::Apis::BooksV1::Volume>

Corresponds to the JSON property volumes

Returns:


1369
1370
1371
# File 'generated/google/apis/books_v1/classes.rb', line 1369

def volumes
  @volumes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1376
1377
1378
1379
1380
1381
1382
1383
# File 'generated/google/apis/books_v1/classes.rb', line 1376

def update!(**args)
  @banner_with_content_container = args[:banner_with_content_container] if args.key?(:banner_with_content_container)
  @sub_title = args[:sub_title] if args.key?(:sub_title)
  @title = args[:title] if args.key?(:title)
  @total_volumes = args[:total_volumes] if args.key?(:total_volumes)
  @uid = args[:uid] if args.key?(:uid)
  @volumes = args[:volumes] if args.key?(:volumes)
end