Class: Google::Apis::SheetsV4::PointStyle

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 style of a point on the chart.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PointStyle

Returns a new instance of PointStyle.



7568
7569
7570
# File 'lib/google/apis/sheets_v4/classes.rb', line 7568

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

Instance Attribute Details

#shapeString

The point shape. If empty or unspecified, a default shape is used. Corresponds to the JSON property shape

Returns:

  • (String)


7561
7562
7563
# File 'lib/google/apis/sheets_v4/classes.rb', line 7561

def shape
  @shape
end

#sizeFloat

The point size. If empty, a default size is used. Corresponds to the JSON property size

Returns:

  • (Float)


7566
7567
7568
# File 'lib/google/apis/sheets_v4/classes.rb', line 7566

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7573
7574
7575
7576
# File 'lib/google/apis/sheets_v4/classes.rb', line 7573

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