Exception: ActiveWebhook::Configuration::InvalidOptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_webhook/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(option, value, values) ⇒ InvalidOptionError

Returns a new instance of InvalidOptionError.



6
7
8
9
10
11
# File 'lib/active_webhook/configuration.rb', line 6

def initialize(option, value, values)
  @option = option
  @values = values
  msg = "Invalid option for #{option}: #{value}. Must be one of #{values}."
  super(msg)
end