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

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

Properties that describe the style of a line.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LineStyle

Returns a new instance of LineStyle.



6577
6578
6579
# File 'lib/google/apis/sheets_v4/classes.rb', line 6577

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


6570
6571
6572
# File 'lib/google/apis/sheets_v4/classes.rb', line 6570

def type
  @type
end

#widthFixnum

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

Returns:

  • (Fixnum)


6575
6576
6577
# File 'lib/google/apis/sheets_v4/classes.rb', line 6575

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6582
6583
6584
6585
# File 'lib/google/apis/sheets_v4/classes.rb', line 6582

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