Class: Google::Apis::FusiontablesV1::Bucket
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV1::Bucket
- 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
Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
Instance Attribute Summary collapse
-
#color ⇒ String
Color of line or the interior of a polygon in #RRGGBB format.
-
#icon ⇒ String
Icon name used for a point.
-
#max ⇒ Float
Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
-
#min ⇒ Float
Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
-
#opacity ⇒ Float
Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
-
#weight ⇒ Fixnum
Width of a line (in pixels).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Bucket
constructor
A new instance of Bucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Bucket
Returns a new instance of Bucket
62 63 64 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 62 def initialize(**args) update!(**args) end |
Instance Attribute Details
#color ⇒ String
Color of line or the interior of a polygon in #RRGGBB format.
Corresponds to the JSON property color
33 34 35 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 33 def color @color end |
#icon ⇒ String
Icon name used for a point.
Corresponds to the JSON property icon
38 39 40 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 38 def icon @icon end |
#max ⇒ Float
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
44 45 46 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 44 def max @max end |
#min ⇒ Float
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
50 51 52 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 50 def min @min end |
#opacity ⇒ Float
Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
Corresponds to the JSON property opacity
55 56 57 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 55 def opacity @opacity end |
#weight ⇒ Fixnum
Width of a line (in pixels).
Corresponds to the JSON property weight
60 61 62 |
# File 'generated/google/apis/fusiontables_v1/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_v1/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 |