Class: Google::Apis::DocsV1::InsertDateRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::InsertDateRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb
Overview
Inserts a date at the specified location.
Instance Attribute Summary collapse
-
#date_element_properties ⇒ Google::Apis::DocsV1::DateElementProperties
Properties of a DateElement.
-
#end_of_segment_location ⇒ Google::Apis::DocsV1::EndOfSegmentLocation
Location at the end of a body, header, footer or footnote.
-
#location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertDateRequest
constructor
A new instance of InsertDateRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InsertDateRequest
Returns a new instance of InsertDateRequest.
2561 2562 2563 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2561 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_element_properties ⇒ Google::Apis::DocsV1::DateElementProperties
Properties of a DateElement.
Corresponds to the JSON property dateElementProperties
2548 2549 2550 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2548 def date_element_properties @date_element_properties end |
#end_of_segment_location ⇒ Google::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
2554 2555 2556 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2554 def end_of_segment_location @end_of_segment_location end |
#location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Corresponds to the JSON property location
2559 2560 2561 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2559 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2566 2567 2568 2569 2570 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2566 def update!(**args) @date_element_properties = args[:date_element_properties] if args.key?(:date_element_properties) @end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location) @location = args[:location] if args.key?(:location) end |