Class: Google::Apis::DocsV1::CreateFooterRequest

Inherits:
Object
  • Object
show all
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

Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a footer of the specified type already exists, a 400 bad request error is returned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateFooterRequest

Returns a new instance of CreateFooterRequest.



386
387
388
# File 'lib/google/apis/docs_v1/classes.rb', line 386

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

Instance Attribute Details

#section_break_locationGoogle::Apis::DocsV1::Location

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



379
380
381
# File 'lib/google/apis/docs_v1/classes.rb', line 379

def section_break_location
  @section_break_location
end

#typeString

The type of footer to create. Corresponds to the JSON property type

Returns:

  • (String)


384
385
386
# File 'lib/google/apis/docs_v1/classes.rb', line 384

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



391
392
393
394
# File 'lib/google/apis/docs_v1/classes.rb', line 391

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