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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Padding

Returns a new instance of Padding



5702
5703
5704
# File 'generated/google/apis/sheets_v4/classes.rb', line 5702

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

Instance Attribute Details

#bottomFixnum

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

Returns:

  • (Fixnum)


5685
5686
5687
# File 'generated/google/apis/sheets_v4/classes.rb', line 5685

def bottom
  @bottom
end

#leftFixnum

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

Returns:

  • (Fixnum)


5690
5691
5692
# File 'generated/google/apis/sheets_v4/classes.rb', line 5690

def left
  @left
end

#rightFixnum

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

Returns:

  • (Fixnum)


5695
5696
5697
# File 'generated/google/apis/sheets_v4/classes.rb', line 5695

def right
  @right
end

#topFixnum

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

Returns:

  • (Fixnum)


5700
5701
5702
# File 'generated/google/apis/sheets_v4/classes.rb', line 5700

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5707
5708
5709
5710
5711
5712
# File 'generated/google/apis/sheets_v4/classes.rb', line 5707

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