Exception: SpookAndPay::Providers::Base::InvalidOptionsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spook_and_pay/providers/base.rb

Overview

An error used when validating the contents of an options hash. Since many of the methods on the provider classes take additional arguments as a Hash, it’s important to make sure we give good errors when they are missing.

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidOptionsError

Returns a new instance of InvalidOptionsError.



24
25
26
# File 'lib/spook_and_pay/providers/base.rb', line 24

def initialize(errors)
  @errors = errors
end

Instance Method Details

#to_sObject



28
29
30
# File 'lib/spook_and_pay/providers/base.rb', line 28

def to_s
  "You have missed, or provided invalid options"
end