Class: Google::Apis::BooksV1::AnnotatinsRange
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::AnnotatinsRange
- 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
-
#end_offset ⇒ String
The offset from the ending position.
-
#end_position ⇒ String
The ending position for the range.
-
#start_offset ⇒ String
The offset from the starting position.
-
#start_position ⇒ String
The starting position for the range.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnnotatinsRange
constructor
A new instance of AnnotatinsRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AnnotatinsRange
Returns a new instance of AnnotatinsRange.
498 499 500 |
# File 'generated/google/apis/books_v1/classes.rb', line 498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_offset ⇒ String
The offset from the ending position.
Corresponds to the JSON property endOffset
481 482 483 |
# File 'generated/google/apis/books_v1/classes.rb', line 481 def end_offset @end_offset end |
#end_position ⇒ String
The ending position for the range.
Corresponds to the JSON property endPosition
486 487 488 |
# File 'generated/google/apis/books_v1/classes.rb', line 486 def end_position @end_position end |
#start_offset ⇒ String
The offset from the starting position.
Corresponds to the JSON property startOffset
491 492 493 |
# File 'generated/google/apis/books_v1/classes.rb', line 491 def start_offset @start_offset end |
#start_position ⇒ String
The starting position for the range.
Corresponds to the JSON property startPosition
496 497 498 |
# File 'generated/google/apis/books_v1/classes.rb', line 496 def start_position @start_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
503 504 505 506 507 508 |
# File 'generated/google/apis/books_v1/classes.rb', line 503 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 |