Class: Google::Apis::FusiontablesV1::StyleSetting

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fusiontables_v1/classes.rb,
generated/google/apis/fusiontables_v1/representations.rb,
generated/google/apis/fusiontables_v1/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



637
638
639
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 637

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

Instance Attribute Details

#kindString

Type name: an individual style setting. A StyleSetting contains the style defintions 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)


605
606
607
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 605

def kind
  @kind
end

#marker_optionsGoogle::Apis::FusiontablesV1::PointStyle

Represents a PointStyle within a StyleSetting Corresponds to the JSON property markerOptions



610
611
612
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 610

def marker_options
  @marker_options
end

#nameString

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

Returns:

  • (String)


615
616
617
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 615

def name
  @name
end

#polygon_optionsGoogle::Apis::FusiontablesV1::PolygonStyle

Represents a PolygonStyle within a StyleSetting Corresponds to the JSON property polygonOptions



620
621
622
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 620

def polygon_options
  @polygon_options
end

#polyline_optionsGoogle::Apis::FusiontablesV1::LineStyle

Represents a LineStyle within a StyleSetting Corresponds to the JSON property polylineOptions



625
626
627
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 625

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)


630
631
632
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 630

def style_id
  @style_id
end

#table_idString

Identifier for the table. Corresponds to the JSON property tableId

Returns:

  • (String)


635
636
637
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 635

def table_id
  @table_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



642
643
644
645
646
647
648
649
650
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 642

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