Class: Google::Apis::BooksV1::ReadingPosition

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReadingPosition

Returns a new instance of ReadingPosition.



2233
2234
2235
# File 'generated/google/apis/books_v1/classes.rb', line 2233

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

Instance Attribute Details

#epub_cfi_positionString

Position in an EPUB as a CFI. Corresponds to the JSON property epubCfiPosition

Returns:

  • (String)


2200
2201
2202
# File 'generated/google/apis/books_v1/classes.rb', line 2200

def epub_cfi_position
  @epub_cfi_position
end

#gb_image_positionString

Position in a volume for image-based content. Corresponds to the JSON property gbImagePosition

Returns:

  • (String)


2205
2206
2207
# File 'generated/google/apis/books_v1/classes.rb', line 2205

def gb_image_position
  @gb_image_position
end

#gb_text_positionString

Position in a volume for text-based content. Corresponds to the JSON property gbTextPosition

Returns:

  • (String)


2210
2211
2212
# File 'generated/google/apis/books_v1/classes.rb', line 2210

def gb_text_position
  @gb_text_position
end

#kindString

Resource type for a reading position. Corresponds to the JSON property kind

Returns:

  • (String)


2215
2216
2217
# File 'generated/google/apis/books_v1/classes.rb', line 2215

def kind
  @kind
end

#pdf_positionString

Position in a PDF file. Corresponds to the JSON property pdfPosition

Returns:

  • (String)


2220
2221
2222
# File 'generated/google/apis/books_v1/classes.rb', line 2220

def pdf_position
  @pdf_position
end

#updatedDateTime

Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). Corresponds to the JSON property updated

Returns:

  • (DateTime)


2226
2227
2228
# File 'generated/google/apis/books_v1/classes.rb', line 2226

def updated
  @updated
end

#volume_idString

Volume id associated with this reading position. Corresponds to the JSON property volumeId

Returns:

  • (String)


2231
2232
2233
# File 'generated/google/apis/books_v1/classes.rb', line 2231

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2238
2239
2240
2241
2242
2243
2244
2245
2246
# 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