Class: Google::Apis::DocsV1::DocumentFormat

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

Represents document-level format settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DocumentFormat

Returns a new instance of DocumentFormat.



1103
1104
1105
# File 'lib/google/apis/docs_v1/classes.rb', line 1103

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

Instance Attribute Details

#document_modeString

Whether the document has pages or is pageless. Corresponds to the JSON property documentMode

Returns:

  • (String)


1101
1102
1103
# File 'lib/google/apis/docs_v1/classes.rb', line 1101

def document_mode
  @document_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1108
1109
1110
# File 'lib/google/apis/docs_v1/classes.rb', line 1108

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