Class: OutwoodLabels::OptionsValidator

Inherits:
Object
  • Object
show all
Includes:
Callable
Defined in:
lib/outwood_labels/options_validator.rb

Instance Method Summary collapse

Methods included from Callable

included

Constructor Details

#initialize(opts) ⇒ OptionsValidator

Returns a new instance of OptionsValidator.

Parameters:

  • opts ({Symbol => Object})


8
9
10
# File 'lib/outwood_labels/options_validator.rb', line 8

def initialize(opts)
  @options = opts
end

Instance Method Details

#callBoolean

Returns:

  • (Boolean)

Raises:



14
15
16
17
18
# File 'lib/outwood_labels/options_validator.rb', line 14

def call
  validate_compatibility
  validate_values
  true
end