Class: Google::Apis::CloudsearchV1::BorderStyle

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BorderStyle

Returns a new instance of BorderStyle.



5182
5183
5184
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5182

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

Instance Attribute Details

#corner_radiusFixnum

The corner radius for the border. Corresponds to the JSON property cornerRadius

Returns:

  • (Fixnum)


5170
5171
5172
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5170

def corner_radius
  @corner_radius
end

#stroke_colorString

The colors to use when the type is STROKE. Corresponds to the JSON property strokeColor

Returns:

  • (String)


5175
5176
5177
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5175

def stroke_color
  @stroke_color
end

#typeString

The border type. Corresponds to the JSON property type

Returns:

  • (String)


5180
5181
5182
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5180

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5187
5188
5189
5190
5191
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5187

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