Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageMaterialIcon
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteStorageMaterialIcon
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
A Google Font Icon, which includes over 2500+
options. For example, to display a check box icon with customized weight and grade, write "name":
"check_box", "fill": true, "weight": 300, "grade": -25
Instance Attribute Summary collapse
-
#fill ⇒ Boolean
(also: #fill?)
Whether it renders a filled icon.
-
#grade ⇒ Fixnum
Weight and grade affect a symbol’s thickness.
-
#name ⇒ String
The icon name defined in the Google Material Icon in snake_case.
-
#weight ⇒ Fixnum
The stroke weight of the icon.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteStorageMaterialIcon
constructor
A new instance of AppsDynamiteStorageMaterialIcon.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteStorageMaterialIcon
Returns a new instance of AppsDynamiteStorageMaterialIcon.
3725 3726 3727 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3725 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fill ⇒ Boolean Also known as: fill?
Whether it renders a filled icon. Default value is false. See Customization in
Google Font Icon for details.
Corresponds to the JSON property fill
3698 3699 3700 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3698 def fill @fill end |
#grade ⇒ Fixnum
Weight and grade affect a symbol’s thickness. Adjustments to grade are more
granular than adjustments to weight and have a small impact on the size of the
symbol. Choose from -25, 0, 200
. If absent, default value is 0. If any other
value is specified, a broken image icon will be displayed. See Customization
in Google Font Icon for details.
Corresponds to the JSON property grade
3708 3709 3710 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3708 def grade @grade end |
#name ⇒ String
The icon name defined in the Google Material Icon in snake_case. e.g. "check_box". Any invalid name will be trimmed as
empty string result in the icon falied to render.
Corresponds to the JSON property name
3715 3716 3717 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3715 def name @name end |
#weight ⇒ Fixnum
The stroke weight of the icon. Choose from 100, 200, 300, 400, 500, 600, 700
.
If absent, default value is 400. If any other value is specified, a broken
image icon will be displayed. See Customization in Google Font Icon for details.
Corresponds to the JSON property weight
3723 3724 3725 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3723 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3730 3731 3732 3733 3734 3735 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3730 def update!(**args) @fill = args[:fill] if args.key?(:fill) @grade = args[:grade] if args.key?(:grade) @name = args[:name] if args.key?(:name) @weight = args[:weight] if args.key?(:weight) end |