Class: Google::Apis::DocsV1::SizeSuggestionState
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::SizeSuggestionState
- 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
A mask that indicates which of the fields on the base Size have been changed in this suggestion. For any field set to true, the Size has a new suggested value.
Instance Attribute Summary collapse
-
#height_suggested ⇒ Boolean
(also: #height_suggested?)
Indicates if there was a suggested change to height.
-
#width_suggested ⇒ Boolean
(also: #width_suggested?)
Indicates if there was a suggested change to width.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SizeSuggestionState
constructor
A new instance of SizeSuggestionState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SizeSuggestionState
Returns a new instance of SizeSuggestionState.
4621 4622 4623 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4621 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height_suggested ⇒ Boolean Also known as: height_suggested?
Indicates if there was a suggested change to height.
Corresponds to the JSON property heightSuggested
4612 4613 4614 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4612 def height_suggested @height_suggested end |
#width_suggested ⇒ Boolean Also known as: width_suggested?
Indicates if there was a suggested change to width.
Corresponds to the JSON property widthSuggested
4618 4619 4620 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4618 def width_suggested @width_suggested end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4626 4627 4628 4629 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4626 def update!(**args) @height_suggested = args[:height_suggested] if args.key?(:height_suggested) @width_suggested = args[:width_suggested] if args.key?(:width_suggested) end |