Class: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes
- 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
-
#image ⇒ Boolean
(also: #image?)
Corresponds to the JSON property
image
. -
#text ⇒ Boolean
(also: #text?)
Corresponds to the JSON property
text
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReadingModes
constructor
A new instance of ReadingModes.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#image ⇒ Boolean Also known as: image?
Corresponds to the JSON property image
4188 4189 4190 |
# File 'generated/google/apis/books_v1/classes.rb', line 4188 def image @image end |
#text ⇒ Boolean Also known as: text?
Corresponds to the JSON property text
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 |