Class: Google::Apis::BooksV1::Series

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

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

Returns a new instance of Series.


2422
2423
2424
# File 'generated/google/apis/books_v1/classes.rb', line 2422

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

Instance Attribute Details

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)

2414
2415
2416
# File 'generated/google/apis/books_v1/classes.rb', line 2414

def kind
  @kind
end

#seriesArray<Google::Apis::BooksV1::Series::Series>

Series info list. The client always expects this element in the JSON output, hence declared here as OutputAlways. Corresponds to the JSON property series


2420
2421
2422
# File 'generated/google/apis/books_v1/classes.rb', line 2420

def series
  @series
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2427
2428
2429
2430
# File 'generated/google/apis/books_v1/classes.rb', line 2427

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