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

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

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.



4196
4197
4198
# File 'lib/google/apis/books_v1/classes.rb', line 4196

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

Instance Attribute Details

#imageBoolean Also known as: image?

Corresponds to the JSON property image

Returns:

  • (Boolean)


4187
4188
4189
# File 'lib/google/apis/books_v1/classes.rb', line 4187

def image
  @image
end

#textBoolean Also known as: text?

Corresponds to the JSON property text

Returns:

  • (Boolean)


4193
4194
4195
# File 'lib/google/apis/books_v1/classes.rb', line 4193

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4201
4202
4203
4204
# File 'lib/google/apis/books_v1/classes.rb', line 4201

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