Class: Imagga::RankOptions
- Inherits:
-
BaseOptions
- Object
- BaseOptions
- Imagga::RankOptions
- Includes:
- Exceptions
- Defined in:
- lib/imagga/options.rb
Instance Attribute Summary
Attributes inherited from BaseOptions
#api_key, #api_secret, #version
Instance Method Summary collapse
Methods included from Exceptions
#raise_if_request_failed!, #raise_missing
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
#method ⇒ Object
58 59 60 |
# File 'lib/imagga/options.rb', line 58 def method 'imagga.colorsearch.rank' end |
#options(opts = {}) ⇒ Object
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/imagga/options.rb', line 47 def (opts={}) opts.merge!().merge!( method: method, color_vector: opts.delete(:color_vector), type: (opts.delete(:type) { raise_missing('type') }).to_s, dist: (opts.delete(:dist) { raise_missing('dist') }).to_s, count: (opts.delete(:count) { raise_missing('count') }).to_s ) opts.merge!(sig: sign(opts)) end |