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

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: Cluster

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

Returns a new instance of Discoveryclusters.



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

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

Instance Attribute Details

#clustersArray<Google::Apis::BooksV1::Discoveryclusters::Cluster>

Corresponds to the JSON property clusters



1352
1353
1354
# File 'generated/google/apis/books_v1/classes.rb', line 1352

def clusters
  @clusters
end

#kindString

Resorce type. Corresponds to the JSON property kind

Returns:

  • (String)


1357
1358
1359
# File 'generated/google/apis/books_v1/classes.rb', line 1357

def kind
  @kind
end

#total_clustersFixnum

Corresponds to the JSON property totalClusters

Returns:

  • (Fixnum)


1362
1363
1364
# File 'generated/google/apis/books_v1/classes.rb', line 1362

def total_clusters
  @total_clusters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @clusters = args[:clusters] if args.key?(:clusters)
  @kind = args[:kind] if args.key?(:kind)
  @total_clusters = args[:total_clusters] if args.key?(:total_clusters)
end