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.
2442 2443 2444 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2442 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
2429 2430 2431 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2429 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
2435 2436 2437 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2435 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
2440 2441 2442 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2440 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2447 2448 2449 2450 2451 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2447 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 |