Class: Google::Apis::FusiontablesV2::LineStyle

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 LineStyle within a StyleSetting

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) ⇒ LineStyle

Returns a new instance of LineStyle



365
366
367
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 365

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

Instance Attribute Details

#stroke_colorString

Color of the line in #RRGGBB format. Corresponds to the JSON property strokeColor

Returns:

  • (String)


343
344
345
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 343

def stroke_color
  @stroke_color
end

#stroke_color_stylerGoogle::Apis::FusiontablesV2::StyleFunction

Represents a StyleFunction within a StyleSetting Corresponds to the JSON property strokeColorStyler



348
349
350
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 348

def stroke_color_styler
  @stroke_color_styler
end

#stroke_opacityFloat

Opacity of the line : 0.0 (transparent) to 1.0 (opaque). Corresponds to the JSON property strokeOpacity

Returns:

  • (Float)


353
354
355
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 353

def stroke_opacity
  @stroke_opacity
end

#stroke_weightFixnum

Width of the line in pixels. Corresponds to the JSON property strokeWeight

Returns:

  • (Fixnum)


358
359
360
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 358

def stroke_weight
  @stroke_weight
end

#stroke_weight_stylerGoogle::Apis::FusiontablesV2::StyleFunction

Represents a StyleFunction within a StyleSetting Corresponds to the JSON property strokeWeightStyler



363
364
365
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 363

def stroke_weight_styler
  @stroke_weight_styler
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



370
371
372
373
374
375
376
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 370

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