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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Body

Returns a new instance of Body



198
199
200
# File 'generated/google/apis/docs_v1/classes.rb', line 198

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

Instance Attribute Details

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

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



196
197
198
# File 'generated/google/apis/docs_v1/classes.rb', line 196

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
# File 'generated/google/apis/docs_v1/classes.rb', line 203

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