Class: Google::Apis::FusiontablesV2::StyleSetting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#kindString

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

Returns:

  • (String)


661
662
663
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 661

def kind
  @kind
end

#marker_optionsGoogle::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
  @marker_options
end

#nameString

Optional name for the style setting. Corresponds to the JSON property name

Returns:

  • (String)


671
672
673
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 671

def name
  @name
end

#polygon_optionsGoogle::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
  @polygon_options
end

#polyline_optionsGoogle::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
  @polyline_options
end

#style_idFixnum

Identifier for the style setting (unique only within tables). Corresponds to the JSON property styleId

Returns:

  • (Fixnum)


686
687
688
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 686

def style_id
  @style_id
end

#table_idString

Identifier for the table. Corresponds to the JSON property tableId

Returns:

  • (String)


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