class Google::Apis::FusiontablesV2::StyleSetting

Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.

Attributes

kind[RW]

The kind of item this is. A StyleSetting contains the style definitions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. Corresponds to the JSON property `kind` @return [String]

marker_options[RW]

Represents a PointStyle within a StyleSetting Corresponds to the JSON property `markerOptions` @return [Google::Apis::FusiontablesV2::PointStyle]

name[RW]

Optional name for the style setting. Corresponds to the JSON property `name` @return [String]

polygon_options[RW]

Represents a PolygonStyle within a StyleSetting Corresponds to the JSON property `polygonOptions` @return [Google::Apis::FusiontablesV2::PolygonStyle]

polyline_options[RW]

Represents a LineStyle within a StyleSetting Corresponds to the JSON property `polylineOptions` @return [Google::Apis::FusiontablesV2::LineStyle]

style_id[RW]

Identifier for the style setting (unique only within tables). Corresponds to the JSON property `styleId` @return [Fixnum]

table_id[RW]

Identifier for the table. Corresponds to the JSON property `tableId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 692
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/fusiontables_v2/classes.rb, line 697
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @marker_options = args[:marker_options] if args.key?(:marker_options)
  @name = args[:name] if args.key?(:name)
  @polygon_options = args[:polygon_options] if args.key?(:polygon_options)
  @polyline_options = args[:polyline_options] if args.key?(:polyline_options)
  @style_id = args[:style_id] if args.key?(:style_id)
  @table_id = args[:table_id] if args.key?(:table_id)
end