Class: Google::Apis::BooksV1::Annotation::CurrentVersionRanges
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Annotation::CurrentVersionRanges
- 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
Selection ranges for the most recent content version.
Instance Attribute Summary collapse
-
#cfi_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in CFI format for this annotation for version above.
-
#content_version ⇒ String
Content version applicable to ranges below.
-
#gb_image_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in GB image format for this annotation for version above.
-
#gb_text_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in GB text format for this annotation for version above.
-
#image_cfi_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in image CFI format for this annotation for version above.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CurrentVersionRanges
constructor
A new instance of CurrentVersionRanges.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CurrentVersionRanges
Returns a new instance of CurrentVersionRanges.
214 215 216 |
# File 'lib/google/apis/books_v1/classes.rb', line 214 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cfi_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in CFI format for this annotation for version above.
Corresponds to the JSON property cfiRange
192 193 194 |
# File 'lib/google/apis/books_v1/classes.rb', line 192 def cfi_range @cfi_range end |
#content_version ⇒ String
Content version applicable to ranges below.
Corresponds to the JSON property contentVersion
197 198 199 |
# File 'lib/google/apis/books_v1/classes.rb', line 197 def content_version @content_version end |
#gb_image_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in GB image format for this annotation for version above.
Corresponds to the JSON property gbImageRange
202 203 204 |
# File 'lib/google/apis/books_v1/classes.rb', line 202 def gb_image_range @gb_image_range end |
#gb_text_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in GB text format for this annotation for version above.
Corresponds to the JSON property gbTextRange
207 208 209 |
# File 'lib/google/apis/books_v1/classes.rb', line 207 def gb_text_range @gb_text_range end |
#image_cfi_range ⇒ Google::Apis::BooksV1::AnnotatinsRange
Range in image CFI format for this annotation for version above.
Corresponds to the JSON property imageCfiRange
212 213 214 |
# File 'lib/google/apis/books_v1/classes.rb', line 212 def image_cfi_range @image_cfi_range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
219 220 221 222 223 224 225 |
# File 'lib/google/apis/books_v1/classes.rb', line 219 def update!(**args) @cfi_range = args[:cfi_range] if args.key?(:cfi_range) @content_version = args[:content_version] if args.key?(:content_version) @gb_image_range = args[:gb_image_range] if args.key?(:gb_image_range) @gb_text_range = args[:gb_text_range] if args.key?(:gb_text_range) @image_cfi_range = args[:image_cfi_range] if args.key?(:image_cfi_range) end |