Class: Google::Apis::FusiontablesV2::Bucket

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

Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket 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) ⇒ Bucket

Returns a new instance of Bucket.



62
63
64
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 62

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

Instance Attribute Details

#colorString

Color of line or the interior of a polygon in #RRGGBB format. Corresponds to the JSON property color

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 33

def color
  @color
end

#iconString

Icon name used for a point. Corresponds to the JSON property icon

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 38

def icon
  @icon
end

#maxFloat

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

Returns:

  • (Float)


44
45
46
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 44

def max
  @max
end

#minFloat

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

Returns:

  • (Float)


50
51
52
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 50

def min
  @min
end

#opacityFloat

Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Corresponds to the JSON property opacity

Returns:

  • (Float)


55
56
57
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 55

def opacity
  @opacity
end

#weightFixnum

Width of a line (in pixels). Corresponds to the JSON property weight

Returns:

  • (Fixnum)


60
61
62
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 60

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



67
68
69
70
71
72
73
74
# 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