Module: Validator

Included in:
Runner
Defined in:
lib/airbrake/cli/validator.rb

Instance Method Summary collapse

Instance Method Details

#validates(*attributes) ⇒ Object



2
3
4
5
6
7
# File 'lib/airbrake/cli/validator.rb', line 2

def validates(*attributes)
  attributes.each do |attribute|
    abort "You didn't provide #{attribute.to_s.upcase}"\
      " so no API request was made." unless Runner.options.send(attribute)
  end
end