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

Constructor Details

#initialize(**args) ⇒ ReadingModes

Returns a new instance of ReadingModes.



4197
4198
4199
# File 'generated/google/apis/books_v1/classes.rb', line 4197

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

Instance Attribute Details

#imageBoolean Also known as: image?

Corresponds to the JSON property image

Returns:

  • (Boolean)


4188
4189
4190
# File 'generated/google/apis/books_v1/classes.rb', line 4188

def image
  @image
end

#textBoolean Also known as: text?

Corresponds to the JSON property text

Returns:

  • (Boolean)


4194
4195
4196
# File 'generated/google/apis/books_v1/classes.rb', line 4194

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4202
4203
4204
4205
# File 'generated/google/apis/books_v1/classes.rb', line 4202

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