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

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

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.



228
229
230
# File 'lib/google/apis/docs_v1/classes.rb', line 228

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



226
227
228
# File 'lib/google/apis/docs_v1/classes.rb', line 226

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



233
234
235
# File 'lib/google/apis/docs_v1/classes.rb', line 233

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