Class: FastpixApiSDK::Models::Components::WatermarkInput
- Inherits:
-
Object
- Object
- FastpixApiSDK::Models::Components::WatermarkInput
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_api_sdk/models/components/watermarkinput.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type: nil, url: nil, placement: nil, width: nil, height: nil, opacity: nil) ⇒ WatermarkInput
constructor
A new instance of WatermarkInput.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(type: nil, url: nil, placement: nil, width: nil, height: nil, opacity: nil) ⇒ WatermarkInput
Returns a new instance of WatermarkInput.
30 31 32 33 34 35 36 37 |
# File 'lib/fastpix_api_sdk/models/components/watermarkinput.rb', line 30 def initialize(type: nil, url: nil, placement: nil, width: nil, height: nil, opacity: nil) @type = type @url = url @placement = placement @width = width @height = height @opacity = opacity end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/fastpix_api_sdk/models/components/watermarkinput.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @type == other.type return false unless @url == other.url return false unless @placement == other.placement return false unless @width == other.width return false unless @height == other.height return false unless @opacity == other.opacity true end |