Class: Google::Apis::SheetsV4::LineStyle
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::LineStyle
- 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
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LineStyle
Returns a new instance of LineStyle
5251 5252 5253 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The dash type of the line.
Corresponds to the JSON property type
5244 5245 5246 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5244 def type @type end |
#width ⇒ Fixnum
The thickness of the line, in px.
Corresponds to the JSON property width
5249 5250 5251 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5249 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5256 5257 5258 5259 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 5256 def update!(**args) @type = args[:type] if args.key?(:type) @width = args[:width] if args.key?(:width) end |