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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb

Overview

The borders of the cell.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Borders

Returns a new instance of Borders.



2274
2275
2276
# File 'lib/google/apis/sheets_v4/classes.rb', line 2274

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

Instance Attribute Details

#bottomGoogle::Apis::SheetsV4::Border

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



2257
2258
2259
# File 'lib/google/apis/sheets_v4/classes.rb', line 2257

def bottom
  @bottom
end

#leftGoogle::Apis::SheetsV4::Border

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



2262
2263
2264
# File 'lib/google/apis/sheets_v4/classes.rb', line 2262

def left
  @left
end

#rightGoogle::Apis::SheetsV4::Border

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



2267
2268
2269
# File 'lib/google/apis/sheets_v4/classes.rb', line 2267

def right
  @right
end

#topGoogle::Apis::SheetsV4::Border

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



2272
2273
2274
# File 'lib/google/apis/sheets_v4/classes.rb', line 2272

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2279
2280
2281
2282
2283
2284
# File 'lib/google/apis/sheets_v4/classes.rb', line 2279

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