class AsposeSlidesCloud::OuterShadowEffect
Represents outer shadow effect
Attributes
blur_radius[RW]
blur radius
direction[RW]
direction
distance[RW]
distance
shadow_color[RW]
shadow color
Public Class Methods
attribute_map()
click to toggle source
Attribute mapping from ruby-style variable name to JSON key.
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 41 def self.attribute_map { :'direction' => :'Direction', :'distance' => :'Distance', :'blur_radius' => :'BlurRadius', :'shadow_color' => :'ShadowColor', } end
new(attributes = {})
click to toggle source
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 62 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'Direction') self.direction = attributes[:'Direction'] end if attributes.has_key?(:'Distance') self.distance = attributes[:'Distance'] end if attributes.has_key?(:'BlurRadius') self.blur_radius = attributes[:'BlurRadius'] end if attributes.has_key?(:'ShadowColor') self.shadow_color = attributes[:'ShadowColor'] end end
swagger_types()
click to toggle source
Attribute type mapping.
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 51 def self.swagger_types { :'direction' => :'Float', :'distance' => :'Float', :'blur_radius' => :'Float', :'shadow_color' => :'String', } end
Public Instance Methods
==(o)
click to toggle source
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 115 def ==(o) return true if self.equal?(o) self.class == o.class && direction == o.direction && distance == o.distance && blur_radius == o.blur_radius && shadow_color == o.shadow_color end
eql?(o)
click to toggle source
@see the ‘==` method @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 126 def eql?(o) self == o end
hash()
click to toggle source
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 132 def hash [direction, distance, blur_radius, shadow_color].hash end
list_invalid_properties()
click to toggle source
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 87 def list_invalid_properties invalid_properties = Array.new if @direction.nil? invalid_properties.push('invalid value for "direction", direction cannot be nil.') end if @distance.nil? invalid_properties.push('invalid value for "distance", distance cannot be nil.') end if @blur_radius.nil? invalid_properties.push('invalid value for "blur_radius", blur_radius cannot be nil.') end invalid_properties end
valid?()
click to toggle source
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/aspose_slides_cloud/models/outer_shadow_effect.rb, line 106 def valid? return false if @direction.nil? return false if @distance.nil? return false if @blur_radius.nil? true end