Class: Google::Apis::CloudsearchV1::BorderStyle
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::BorderStyle
- 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
Represents a complete border style that can be applied to widgets.
Instance Attribute Summary collapse
-
#corner_radius ⇒ Fixnum
The corner radius for the border.
-
#stroke_color ⇒ String
The colors to use when the type is STROKE.
-
#type ⇒ String
The border type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BorderStyle
constructor
A new instance of BorderStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BorderStyle
Returns a new instance of BorderStyle.
5124 5125 5126 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#corner_radius ⇒ Fixnum
The corner radius for the border.
Corresponds to the JSON property cornerRadius
5112 5113 5114 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5112 def corner_radius @corner_radius end |
#stroke_color ⇒ String
The colors to use when the type is STROKE.
Corresponds to the JSON property strokeColor
5117 5118 5119 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5117 def stroke_color @stroke_color end |
#type ⇒ String
The border type.
Corresponds to the JSON property type
5122 5123 5124 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5122 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5129 5130 5131 5132 5133 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5129 def update!(**args) @corner_radius = args[:corner_radius] if args.key?(:corner_radius) @stroke_color = args[:stroke_color] if args.key?(:stroke_color) @type = args[:type] if args.key?(:type) end |