Class: Google::Apis::SheetsV4::LineStyle
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::LineStyle
- 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
-
#type ⇒ String
The dash type of the line.
-
#width ⇒ Fixnum
The thickness of the line, in px.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LineStyle
constructor
A new instance of LineStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LineStyle
Returns a new instance of LineStyle.
6480 6481 6482 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The dash type of the line.
Corresponds to the JSON property type
6473 6474 6475 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6473 def type @type end |
#width ⇒ Fixnum
The thickness of the line, in px.
Corresponds to the JSON property width
6478 6479 6480 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6478 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6485 6486 6487 6488 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6485 def update!(**args) @type = args[:type] if args.key?(:type) @width = args[:width] if args.key?(:width) end |