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.



2474
2475
2476
# File 'generated/google/apis/sheets_v4/classes.rb', line 2474

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

Instance Attribute Details

#bottomGoogle::Apis::SheetsV4::Border

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



2457
2458
2459
# File 'generated/google/apis/sheets_v4/classes.rb', line 2457

def bottom
  @bottom
end

#leftGoogle::Apis::SheetsV4::Border

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



2462
2463
2464
# File 'generated/google/apis/sheets_v4/classes.rb', line 2462

def left
  @left
end

#rightGoogle::Apis::SheetsV4::Border

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



2467
2468
2469
# File 'generated/google/apis/sheets_v4/classes.rb', line 2467

def right
  @right
end

#topGoogle::Apis::SheetsV4::Border

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



2472
2473
2474
# File 'generated/google/apis/sheets_v4/classes.rb', line 2472

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2479
2480
2481
2482
2483
2484
# File 'generated/google/apis/sheets_v4/classes.rb', line 2479

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