class Google::Apis::FusiontablesV2::Bucket

Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.

Attributes

color[RW]

Color of line or the interior of a polygon in #RRGGBB format. Corresponds to the JSON property `color` @return [String]

icon[RW]

Icon name used for a point. Corresponds to the JSON property `icon` @return [String]

max[RW]

Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. Corresponds to the JSON property `max` @return [Float]

min[RW]

Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. Corresponds to the JSON property `min` @return [Float]

opacity[RW]

Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Corresponds to the JSON property `opacity` @return [Float]

weight[RW]

Width of a line (in pixels). Corresponds to the JSON property `weight` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 62
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/fusiontables_v2/classes.rb, line 67
def update!(**args)
  @color = args[:color] if args.key?(:color)
  @icon = args[:icon] if args.key?(:icon)
  @max = args[:max] if args.key?(:max)
  @min = args[:min] if args.key?(:min)
  @opacity = args[:opacity] if args.key?(:opacity)
  @weight = args[:weight] if args.key?(:weight)
end