Class: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes

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

Overview

The reading modes available for this volume.

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

Returns a new instance of ReadingModes.



4216
4217
4218
# File 'generated/google/apis/books_v1/classes.rb', line 4216

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

Instance Attribute Details

#imageBoolean Also known as: image?

Corresponds to the JSON property image

Returns:

  • (Boolean)


4207
4208
4209
# File 'generated/google/apis/books_v1/classes.rb', line 4207

def image
  @image
end

#textBoolean Also known as: text?

Corresponds to the JSON property text

Returns:

  • (Boolean)


4213
4214
4215
# File 'generated/google/apis/books_v1/classes.rb', line 4213

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4221
4222
4223
4224
# File 'generated/google/apis/books_v1/classes.rb', line 4221

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