Class: Google::Apis::SheetsV4::LineStyle

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

Properties that describe the style of a line.

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

Returns a new instance of LineStyle.



6504
6505
6506
# File 'generated/google/apis/sheets_v4/classes.rb', line 6504

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

Instance Attribute Details

#typeString

The dash type of the line. Corresponds to the JSON property type

Returns:

  • (String)


6497
6498
6499
# File 'generated/google/apis/sheets_v4/classes.rb', line 6497

def type
  @type
end

#widthFixnum

The thickness of the line, in px. Corresponds to the JSON property width

Returns:

  • (Fixnum)


6502
6503
6504
# File 'generated/google/apis/sheets_v4/classes.rb', line 6502

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6509
6510
6511
6512
# File 'generated/google/apis/sheets_v4/classes.rb', line 6509

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @width = args[:width] if args.key?(:width)
end