Class: Google::Apis::DocsV1::CreateFootnoteRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb

Overview

Creates a Footnote segment and inserts a new FootnoteReference to it at the given location. The new Footnote segment will contain a space followed by a newline character.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateFootnoteRequest

Returns a new instance of CreateFootnoteRequest.



408
409
410
# File 'generated/google/apis/docs_v1/classes.rb', line 408

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

Instance Attribute Details

#end_of_segment_locationGoogle::Apis::DocsV1::EndOfSegmentLocation

Location at the end of a body, header, footer or footnote. The location is immediately before the last newline in the document segment. Corresponds to the JSON property endOfSegmentLocation



401
402
403
# File 'generated/google/apis/docs_v1/classes.rb', line 401

def end_of_segment_location
  @end_of_segment_location
end

#locationGoogle::Apis::DocsV1::Location

A particular location in the document. Corresponds to the JSON property location



406
407
408
# File 'generated/google/apis/docs_v1/classes.rb', line 406

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



413
414
415
416
# File 'generated/google/apis/docs_v1/classes.rb', line 413

def update!(**args)
  @end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
  @location = args[:location] if args.key?(:location)
end