Class: Google::Apis::BooksV1::ReadingPosition
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::BooksV1::ReadingPosition
 
- 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
- 
  
    
      #epub_cfi_position  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Position in an EPUB as a CFI. 
- 
  
    
      #gb_image_position  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Position in a volume for image-based content. 
- 
  
    
      #gb_text_position  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Position in a volume for text-based content. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Resource type for a reading position. 
- 
  
    
      #pdf_position  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Position in a PDF file. 
- 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). 
- 
  
    
      #volume_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Volume id associated with this reading position. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ReadingPosition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ReadingPosition. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReadingPosition
Returns a new instance of ReadingPosition
| 2309 2310 2311 | # File 'generated/google/apis/books_v1/classes.rb', line 2309 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#epub_cfi_position ⇒ String
Position in an EPUB as a CFI.
Corresponds to the JSON property epubCfiPosition
| 2276 2277 2278 | # File 'generated/google/apis/books_v1/classes.rb', line 2276 def epub_cfi_position @epub_cfi_position end | 
#gb_image_position ⇒ String
Position in a volume for image-based content.
Corresponds to the JSON property gbImagePosition
| 2281 2282 2283 | # File 'generated/google/apis/books_v1/classes.rb', line 2281 def gb_image_position @gb_image_position end | 
#gb_text_position ⇒ String
Position in a volume for text-based content.
Corresponds to the JSON property gbTextPosition
| 2286 2287 2288 | # File 'generated/google/apis/books_v1/classes.rb', line 2286 def gb_text_position @gb_text_position end | 
#kind ⇒ String
Resource type for a reading position.
Corresponds to the JSON property kind
| 2291 2292 2293 | # File 'generated/google/apis/books_v1/classes.rb', line 2291 def kind @kind end | 
#pdf_position ⇒ String
Position in a PDF file.
Corresponds to the JSON property pdfPosition
| 2296 2297 2298 | # File 'generated/google/apis/books_v1/classes.rb', line 2296 def pdf_position @pdf_position end | 
#updated ⇒ DateTime
Timestamp when this reading position was last updated (formatted UTC timestamp
with millisecond resolution).
Corresponds to the JSON property updated
| 2302 2303 2304 | # File 'generated/google/apis/books_v1/classes.rb', line 2302 def updated @updated end | 
#volume_id ⇒ String
Volume id associated with this reading position.
Corresponds to the JSON property volumeId
| 2307 2308 2309 | # File 'generated/google/apis/books_v1/classes.rb', line 2307 def volume_id @volume_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2314 2315 2316 2317 2318 2319 2320 2321 2322 | # File 'generated/google/apis/books_v1/classes.rb', line 2314 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 |