Class: Google::Apis::SheetsV4::Padding

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Padding

Returns a new instance of Padding.



7283
7284
7285
# File 'lib/google/apis/sheets_v4/classes.rb', line 7283

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

Instance Attribute Details

#bottomFixnum

The bottom padding of the cell. Corresponds to the JSON property bottom

Returns:

  • (Fixnum)


7266
7267
7268
# File 'lib/google/apis/sheets_v4/classes.rb', line 7266

def bottom
  @bottom
end

#leftFixnum

The left padding of the cell. Corresponds to the JSON property left

Returns:

  • (Fixnum)


7271
7272
7273
# File 'lib/google/apis/sheets_v4/classes.rb', line 7271

def left
  @left
end

#rightFixnum

The right padding of the cell. Corresponds to the JSON property right

Returns:

  • (Fixnum)


7276
7277
7278
# File 'lib/google/apis/sheets_v4/classes.rb', line 7276

def right
  @right
end

#topFixnum

The top padding of the cell. Corresponds to the JSON property top

Returns:

  • (Fixnum)


7281
7282
7283
# File 'lib/google/apis/sheets_v4/classes.rb', line 7281

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7288
7289
7290
7291
7292
7293
# File 'lib/google/apis/sheets_v4/classes.rb', line 7288

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