Class: Google::Apis::DocsV1::SuggestedDocumentStyle

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

A suggested change to the DocumentStyle.

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) ⇒ SuggestedDocumentStyle

Returns a new instance of SuggestedDocumentStyle.



4885
4886
4887
# File 'generated/google/apis/docs_v1/classes.rb', line 4885

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

Instance Attribute Details

#document_styleGoogle::Apis::DocsV1::DocumentStyle

The style of the document. Corresponds to the JSON property documentStyle



4876
4877
4878
# File 'generated/google/apis/docs_v1/classes.rb', line 4876

def document_style
  @document_style
end

#document_style_suggestion_stateGoogle::Apis::DocsV1::DocumentStyleSuggestionState

A mask that indicates which of the fields on the base DocumentStyle have been changed in this suggestion. For any field set to true, there is a new suggested value. Corresponds to the JSON property documentStyleSuggestionState



4883
4884
4885
# File 'generated/google/apis/docs_v1/classes.rb', line 4883

def document_style_suggestion_state
  @document_style_suggestion_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4890
4891
4892
4893
# File 'generated/google/apis/docs_v1/classes.rb', line 4890

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