Class: Google::Apis::BooksV1::AnnotatinsRange

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) ⇒ AnnotatinsRange

Returns a new instance of AnnotatinsRange.



432
433
434
# File 'generated/google/apis/books_v1/classes.rb', line 432

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

Instance Attribute Details

#end_offsetString

The offset from the ending position. Corresponds to the JSON property endOffset

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/books_v1/classes.rb', line 415

def end_offset
  @end_offset
end

#end_positionString

The ending position for the range. Corresponds to the JSON property endPosition

Returns:

  • (String)


420
421
422
# File 'generated/google/apis/books_v1/classes.rb', line 420

def end_position
  @end_position
end

#start_offsetString

The offset from the starting position. Corresponds to the JSON property startOffset

Returns:

  • (String)


425
426
427
# File 'generated/google/apis/books_v1/classes.rb', line 425

def start_offset
  @start_offset
end

#start_positionString

The starting position for the range. Corresponds to the JSON property startPosition

Returns:

  • (String)


430
431
432
# File 'generated/google/apis/books_v1/classes.rb', line 430

def start_position
  @start_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



437
438
439
440
441
442
# File 'generated/google/apis/books_v1/classes.rb', line 437

def update!(**args)
  @end_offset = args[:end_offset] if args.key?(:end_offset)
  @end_position = args[:end_position] if args.key?(:end_position)
  @start_offset = args[:start_offset] if args.key?(:start_offset)
  @start_position = args[:start_position] if args.key?(:start_position)
end