Class: Google::Apis::DocsV1::Body

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

The document body. The body typically contains the full document contents except for headers, footers and footnotes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Body

Returns a new instance of Body.



189
190
191
# File 'generated/google/apis/docs_v1/classes.rb', line 189

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

Instance Attribute Details

#contentArray<Google::Apis::DocsV1::StructuralElement>

The contents of the body. The indexes for the body's content begin at zero. Corresponds to the JSON property content



187
188
189
# File 'generated/google/apis/docs_v1/classes.rb', line 187

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



194
195
196
# File 'generated/google/apis/docs_v1/classes.rb', line 194

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