Class: Imagga::CropOptions

Inherits:
BaseOptions show all
Defined in:
lib/imagga/options.rb

Instance Attribute Summary

Attributes inherited from BaseOptions

#api_key, #api_secret, #version

Instance Method Summary collapse

Methods inherited from BaseOptions

#base_options, #initialize, #sign

Methods included from Parametizer

#build_boolean_options, #build_comma_separated_string

Constructor Details

This class inherits a constructor from Imagga::BaseOptions

Instance Method Details

#methodObject



70
71
72
# File 'lib/imagga/options.rb', line 70

def method
  'imagga.process.crop'
end

#options(opts = {}) ⇒ Object



64
65
66
67
68
# File 'lib/imagga/options.rb', line 64

def options(opts={})
  options = base_options.merge(opts).merge(method: method)
  options.merge!(build_boolean_options(opts, :no_scaling))
  options.merge!(sig: sign(options))
end