class Google::Apis::BooksV1::ReadingPosition

Attributes

epub_cfi_position[RW]

Position in an EPUB as a CFI. Corresponds to the JSON property `epubCfiPosition` @return [String]

gb_image_position[RW]

Position in a volume for image-based content. Corresponds to the JSON property `gbImagePosition` @return [String]

gb_text_position[RW]

Position in a volume for text-based content. Corresponds to the JSON property `gbTextPosition` @return [String]

kind[RW]

Resource type for a reading position. Corresponds to the JSON property `kind` @return [String]

pdf_position[RW]

Position in a PDF file. Corresponds to the JSON property `pdfPosition` @return [String]

updated[RW]

Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). Corresponds to the JSON property `updated` @return [DateTime]

volume_id[RW]

Volume id associated with this reading position. Corresponds to the JSON property `volumeId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/books_v1/classes.rb, line 2233
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/books_v1/classes.rb, line 2238
def update!(**args)
  @epub_cfi_position = args[:epub_cfi_position] if args.key?(:epub_cfi_position)
  @gb_image_position = args[:gb_image_position] if args.key?(:gb_image_position)
  @gb_text_position = args[:gb_text_position] if args.key?(:gb_text_position)
  @kind = args[:kind] if args.key?(:kind)
  @pdf_position = args[:pdf_position] if args.key?(:pdf_position)
  @updated = args[:updated] if args.key?(:updated)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end