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

Constructor Details

#initialize(**args) ⇒ Padding

Returns a new instance of Padding.



6978
6979
6980
# File 'generated/google/apis/sheets_v4/classes.rb', line 6978

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

Instance Attribute Details

#bottomFixnum

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

Returns:

  • (Fixnum)


6961
6962
6963
# File 'generated/google/apis/sheets_v4/classes.rb', line 6961

def bottom
  @bottom
end

#leftFixnum

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

Returns:

  • (Fixnum)


6966
6967
6968
# File 'generated/google/apis/sheets_v4/classes.rb', line 6966

def left
  @left
end

#rightFixnum

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

Returns:

  • (Fixnum)


6971
6972
6973
# File 'generated/google/apis/sheets_v4/classes.rb', line 6971

def right
  @right
end

#topFixnum

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

Returns:

  • (Fixnum)


6976
6977
6978
# File 'generated/google/apis/sheets_v4/classes.rb', line 6976

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6983
6984
6985
6986
6987
6988
# File 'generated/google/apis/sheets_v4/classes.rb', line 6983

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