Class: Google::Apis::SheetsV4::Borders

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 borders of the cell.

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) ⇒ Borders

Returns a new instance of Borders



3067
3068
3069
# File 'generated/google/apis/sheets_v4/classes.rb', line 3067

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

Instance Attribute Details

#bottomGoogle::Apis::SheetsV4::Border

A border along a cell. Corresponds to the JSON property bottom



3060
3061
3062
# File 'generated/google/apis/sheets_v4/classes.rb', line 3060

def bottom
  @bottom
end

#leftGoogle::Apis::SheetsV4::Border

A border along a cell. Corresponds to the JSON property left



3050
3051
3052
# File 'generated/google/apis/sheets_v4/classes.rb', line 3050

def left
  @left
end

#rightGoogle::Apis::SheetsV4::Border

A border along a cell. Corresponds to the JSON property right



3055
3056
3057
# File 'generated/google/apis/sheets_v4/classes.rb', line 3055

def right
  @right
end

#topGoogle::Apis::SheetsV4::Border

A border along a cell. Corresponds to the JSON property top



3065
3066
3067
# File 'generated/google/apis/sheets_v4/classes.rb', line 3065

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3072
3073
3074
3075
3076
3077
# File 'generated/google/apis/sheets_v4/classes.rb', line 3072

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