Class: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes
- 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
-
#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.
4196 4197 4198 |
# File 'lib/google/apis/books_v1/classes.rb', line 4196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image ⇒ Boolean Also known as: image?
Corresponds to the JSON property image
4187 4188 4189 |
# File 'lib/google/apis/books_v1/classes.rb', line 4187 def image @image end |
#text ⇒ Boolean Also known as: text?
Corresponds to the JSON property text
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 |