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

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

Defined Under Namespace

Classes: Cluster

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Discoveryclusters

Returns a new instance of Discoveryclusters.



1328
1329
1330
# File 'lib/google/apis/books_v1/classes.rb', line 1328

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

Instance Attribute Details

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

Corresponds to the JSON property clusters



1316
1317
1318
# File 'lib/google/apis/books_v1/classes.rb', line 1316

def clusters
  @clusters
end

#kindString

Resorce type. Corresponds to the JSON property kind

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/books_v1/classes.rb', line 1321

def kind
  @kind
end

#total_clustersFixnum

Corresponds to the JSON property totalClusters

Returns:

  • (Fixnum)


1326
1327
1328
# File 'lib/google/apis/books_v1/classes.rb', line 1326

def total_clusters
  @total_clusters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1333
1334
1335
1336
1337
# File 'lib/google/apis/books_v1/classes.rb', line 1333

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