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.



97
98
99
# File 'generated/google/apis/sheets_v4/classes.rb', line 97

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

Instance Attribute Details

#bottomFixnum

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

Returns:

  • (Fixnum)


95
96
97
# File 'generated/google/apis/sheets_v4/classes.rb', line 95

def bottom
  @bottom
end

#leftFixnum

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

Returns:

  • (Fixnum)


85
86
87
# File 'generated/google/apis/sheets_v4/classes.rb', line 85

def left
  @left
end

#rightFixnum

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

Returns:

  • (Fixnum)


80
81
82
# File 'generated/google/apis/sheets_v4/classes.rb', line 80

def right
  @right
end

#topFixnum

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

Returns:

  • (Fixnum)


90
91
92
# File 'generated/google/apis/sheets_v4/classes.rb', line 90

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



102
103
104
105
106
107
# File 'generated/google/apis/sheets_v4/classes.rb', line 102

def update!(**args)
  @right = args[:right] if args.key?(:right)
  @left = args[:left] if args.key?(:left)
  @top = args[:top] if args.key?(:top)
  @bottom = args[:bottom] if args.key?(:bottom)
end