Class: PayjpMock::Response::Deleted

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

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#body, #exception, #to_h

Constructor Details

#initialize(resource_id) ⇒ Deleted

Returns a new instance of Deleted.



3
4
5
6
7
8
9
# File 'lib/payjp_mock/response/deleted.rb', line 3

def initialize(resource_id)
  @attributes = {
    deleted:  true,
    id:       resource_id,
    livemode: false
  }
end

Instance Method Details

#statusObject



11
12
13
# File 'lib/payjp_mock/response/deleted.rb', line 11

def status
  200
end