Exception: WrongOrderParameters

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openpayu/exceptions.rb

Instance Method Summary (collapse)

Constructor Details

- (WrongOrderParameters) initialize(order)

Returns a new instance of WrongOrderParameters



10
11
12
# File 'lib/openpayu/exceptions.rb', line 10

def initialize(order)
  @order = order
end

Instance Method Details

- (Object) message



14
15
16
17
18
# File 'lib/openpayu/exceptions.rb', line 14

def message
  @order.all_errors.map do |k, v|
    "Class #{k} missing attributes: #{v.messages.inspect}"
  end
end