Class: PayjpMock::Response::Error::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/payjp_mock/response/error/base.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#exception, #status, #to_h

Constructor Details

#initializeBase

Returns a new instance of Base.



3
4
5
# File 'lib/payjp_mock/response/error/base.rb', line 3

def initialize
  @attributes = default_attributes
end

Instance Method Details

#bodyObject



7
8
9
# File 'lib/payjp_mock/response/error/base.rb', line 7

def body
  { error: @attributes }.to_json
end