Class: Google::Apis::SheetsV4::Padding
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Padding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ Padding
Returns a new instance of Padding.
7124 7125 7126 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom ⇒ Fixnum
The bottom padding of the cell.
Corresponds to the JSON property bottom
7107 7108 7109 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7107 def bottom @bottom end |
#left ⇒ Fixnum
The left padding of the cell.
Corresponds to the JSON property left
7112 7113 7114 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7112 def left @left end |
#right ⇒ Fixnum
The right padding of the cell.
Corresponds to the JSON property right
7117 7118 7119 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7117 def right @right end |
#top ⇒ Fixnum
The top padding of the cell.
Corresponds to the JSON property top
7122 7123 7124 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7122 def top @top end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7129 7130 7131 7132 7133 7134 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7129 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 |