Class: PayjpMock::Response::Resource::Base

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

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods included from Util

#generate_fingerprint, #generate_resource_id

Methods inherited from Base

#body, #exception, #to_h

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/payjp_mock/response/resource/base.rb', line 6

def initialize(attributes = {})
  @attributes = default_attributes.merge(attributes.symbolize_keys)
end

Instance Method Details

#statusObject



10
11
12
# File 'lib/payjp_mock/response/resource/base.rb', line 10

def status
  200
end