Class: Google::Apis::BooksV1::VolumeAnnotation::ContentRanges

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 content ranges to identify the selected text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContentRanges

Returns a new instance of ContentRanges.



4362
4363
4364
# File 'lib/google/apis/books_v1/classes.rb', line 4362

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

Instance Attribute Details

#cfi_rangeGoogle::Apis::BooksV1::AnnotatinsRange

Range in CFI format for this annotation for version above. Corresponds to the JSON property cfiRange



4345
4346
4347
# File 'lib/google/apis/books_v1/classes.rb', line 4345

def cfi_range
  @cfi_range
end

#content_versionString

Content version applicable to ranges below. Corresponds to the JSON property contentVersion

Returns:

  • (String)


4350
4351
4352
# File 'lib/google/apis/books_v1/classes.rb', line 4350

def content_version
  @content_version
end

#gb_image_rangeGoogle::Apis::BooksV1::AnnotatinsRange

Range in GB image format for this annotation for version above. Corresponds to the JSON property gbImageRange



4355
4356
4357
# File 'lib/google/apis/books_v1/classes.rb', line 4355

def gb_image_range
  @gb_image_range
end

#gb_text_rangeGoogle::Apis::BooksV1::AnnotatinsRange

Range in GB text format for this annotation for version above. Corresponds to the JSON property gbTextRange



4360
4361
4362
# File 'lib/google/apis/books_v1/classes.rb', line 4360

def gb_text_range
  @gb_text_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4367
4368
4369
4370
4371
4372
# File 'lib/google/apis/books_v1/classes.rb', line 4367

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)
end