Class: Google::Apis::FusiontablesV1::StyleSetting
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::FusiontablesV1::StyleSetting
 
 
- 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
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Type name: an individual style setting.
 - 
  
    
      #marker_options  ⇒ Google::Apis::FusiontablesV1::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::FusiontablesV1::PolygonStyle 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a PolygonStyle within a StyleSetting Corresponds to the JSON property
polygonOptions. - 
  
    
      #polyline_options  ⇒ Google::Apis::FusiontablesV1::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
      637 638 639  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 637 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#kind ⇒ String
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
      605 606 607  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 605 def kind @kind end  | 
  
#marker_options ⇒ Google::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 end  | 
  
#name ⇒ String
Optional name for the style setting.
Corresponds to the JSON property name
      615 616 617  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 615 def name @name end  | 
  
#polygon_options ⇒ Google::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 end  | 
  
#polyline_options ⇒ Google::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 end  | 
  
#style_id ⇒ Fixnum
Identifier for the style setting (unique only within tables).
Corresponds to the JSON property styleId
      630 631 632  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 630 def style_id @style_id end  | 
  
#table_id ⇒ String
Identifier for the table.
Corresponds to the JSON property tableId
      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  |