Class: Google::Apis::FusiontablesV2::StyleSetting
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV2::StyleSetting
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fusiontables_v2/classes.rb,
generated/google/apis/fusiontables_v2/representations.rb,
generated/google/apis/fusiontables_v2/representations.rb
Overview
Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
Instance Attribute Summary collapse
-
#kind ⇒ String
The kind of item this is.
-
#marker_options ⇒ Google::Apis::FusiontablesV2::PointStyle
Represents a PointStyle within a StyleSetting Corresponds to the JSON property
markerOptions
. -
#name ⇒ String
Optional name for the style setting.
-
#polygon_options ⇒ Google::Apis::FusiontablesV2::PolygonStyle
Represents a PolygonStyle within a StyleSetting Corresponds to the JSON property
polygonOptions
. -
#polyline_options ⇒ Google::Apis::FusiontablesV2::LineStyle
Represents a LineStyle within a StyleSetting Corresponds to the JSON property
polylineOptions
. -
#style_id ⇒ Fixnum
Identifier for the style setting (unique only within tables).
-
#table_id ⇒ String
Identifier for the table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StyleSetting
constructor
A new instance of StyleSetting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StyleSetting
Returns a new instance of StyleSetting
693 694 695 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 693 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
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
661 662 663 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 661 def kind @kind end |
#marker_options ⇒ Google::Apis::FusiontablesV2::PointStyle
Represents a PointStyle within a StyleSetting
Corresponds to the JSON property markerOptions
666 667 668 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 666 def @marker_options end |
#name ⇒ String
Optional name for the style setting.
Corresponds to the JSON property name
671 672 673 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 671 def name @name end |
#polygon_options ⇒ Google::Apis::FusiontablesV2::PolygonStyle
Represents a PolygonStyle within a StyleSetting
Corresponds to the JSON property polygonOptions
676 677 678 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 676 def @polygon_options end |
#polyline_options ⇒ Google::Apis::FusiontablesV2::LineStyle
Represents a LineStyle within a StyleSetting
Corresponds to the JSON property polylineOptions
681 682 683 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 681 def @polyline_options end |
#style_id ⇒ Fixnum
Identifier for the style setting (unique only within tables).
Corresponds to the JSON property styleId
686 687 688 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 686 def style_id @style_id end |
#table_id ⇒ String
Identifier for the table.
Corresponds to the JSON property tableId
691 692 693 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 691 def table_id @table_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
698 699 700 701 702 703 704 705 706 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 698 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 |