Class: Google::Apis::SheetsV4::Padding
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Padding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
The amount of padding around the cell, in pixels. When updating padding, every field must be specified.
Instance Attribute Summary collapse
-
#bottom ⇒ Fixnum
The bottom padding of the cell.
-
#left ⇒ Fixnum
The left padding of the cell.
-
#right ⇒ Fixnum
The right padding of the cell.
-
#top ⇒ Fixnum
The top padding of the cell.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Padding
constructor
A new instance of Padding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Padding
Returns a new instance of Padding.
7157 7158 7159 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7157 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom ⇒ Fixnum
The bottom padding of the cell.
Corresponds to the JSON property bottom
7140 7141 7142 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7140 def bottom @bottom end |
#left ⇒ Fixnum
The left padding of the cell.
Corresponds to the JSON property left
7145 7146 7147 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7145 def left @left end |
#right ⇒ Fixnum
The right padding of the cell.
Corresponds to the JSON property right
7150 7151 7152 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7150 def right @right end |
#top ⇒ Fixnum
The top padding of the cell.
Corresponds to the JSON property top
7155 7156 7157 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7155 def top @top end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7162 7163 7164 7165 7166 7167 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7162 def update!(**args) @bottom = args[:bottom] if args.key?(:bottom) @left = args[:left] if args.key?(:left) @right = args[:right] if args.key?(:right) @top = args[:top] if args.key?(:top) end |