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



5297
5298
5299
# File 'generated/google/apis/sheets_v4/classes.rb', line 5297

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

Instance Attribute Details

#bottomGoogle::Apis::SheetsV4::Border

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



5285
5286
5287
# File 'generated/google/apis/sheets_v4/classes.rb', line 5285

def bottom
  @bottom
end

#leftGoogle::Apis::SheetsV4::Border

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



5295
5296
5297
# File 'generated/google/apis/sheets_v4/classes.rb', line 5295

def left
  @left
end

#rightGoogle::Apis::SheetsV4::Border

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



5280
5281
5282
# File 'generated/google/apis/sheets_v4/classes.rb', line 5280

def right
  @right
end

#topGoogle::Apis::SheetsV4::Border

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



5290
5291
5292
# File 'generated/google/apis/sheets_v4/classes.rb', line 5290

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5302
5303
5304
5305
5306
5307
# File 'generated/google/apis/sheets_v4/classes.rb', line 5302

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