Class: Google::Apis::FusiontablesV1::LineStyle
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::FusiontablesV1::LineStyle
 
 
- 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 LineStyle within a StyleSetting
Instance Attribute Summary collapse
- 
  
    
      #stroke_color  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Color of the line in #RRGGBB format.
 - 
  
    
      #stroke_color_styler  ⇒ Google::Apis::FusiontablesV1::StyleFunction 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a StyleFunction within a StyleSetting Corresponds to the JSON property
strokeColorStyler. - 
  
    
      #stroke_opacity  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
 - 
  
    
      #stroke_weight  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Width of the line in pixels.
 - 
  
    
      #stroke_weight_styler  ⇒ Google::Apis::FusiontablesV1::StyleFunction 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a StyleFunction within a StyleSetting Corresponds to the JSON property
strokeWeightStyler. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LineStyle 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of LineStyle.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LineStyle
Returns a new instance of LineStyle
      309 310 311  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 309 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#stroke_color ⇒ String
Color of the line in #RRGGBB format.
Corresponds to the JSON property strokeColor
      287 288 289  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 287 def stroke_color @stroke_color end  | 
  
#stroke_color_styler ⇒ Google::Apis::FusiontablesV1::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property strokeColorStyler
      292 293 294  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 292 def stroke_color_styler @stroke_color_styler end  | 
  
#stroke_opacity ⇒ Float
Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
Corresponds to the JSON property strokeOpacity
      297 298 299  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 297 def stroke_opacity @stroke_opacity end  | 
  
#stroke_weight ⇒ Fixnum
Width of the line in pixels.
Corresponds to the JSON property strokeWeight
      302 303 304  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 302 def stroke_weight @stroke_weight end  | 
  
#stroke_weight_styler ⇒ Google::Apis::FusiontablesV1::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property strokeWeightStyler
      307 308 309  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 307 def stroke_weight_styler @stroke_weight_styler end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      314 315 316 317 318 319 320  | 
    
      # File 'generated/google/apis/fusiontables_v1/classes.rb', line 314 def update!(**args) @stroke_color = args[:stroke_color] if args.key?(:stroke_color) @stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler) @stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity) @stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight) @stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler) end  |