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
3021 3022 3023 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3021 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom ⇒ Fixnum
The bottom padding of the cell.
Corresponds to the JSON property bottom
3009 3010 3011 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3009 def bottom @bottom end |
#left ⇒ Fixnum
The left padding of the cell.
Corresponds to the JSON property left
3019 3020 3021 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3019 def left @left end |
#right ⇒ Fixnum
The right padding of the cell.
Corresponds to the JSON property right
3004 3005 3006 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3004 def right @right end |
#top ⇒ Fixnum
The top padding of the cell.
Corresponds to the JSON property top
3014 3015 3016 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3014 def top @top end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3026 3027 3028 3029 3030 3031 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3026 def update!(**args) @right = args[:right] if args.key?(:right) @bottom = args[:bottom] if args.key?(:bottom) @top = args[:top] if args.key?(:top) @left = args[:left] if args.key?(:left) end |