Class: PayjpMock::Response::Base
- Inherits:
-
Object
- Object
- PayjpMock::Response::Base
show all
- Defined in:
- lib/payjp_mock/response/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
2
3
4
|
# File 'lib/payjp_mock/response/base.rb', line 2
def attributes
@attributes
end
|
Instance Method Details
#body ⇒ Object
4
5
6
|
# File 'lib/payjp_mock/response/base.rb', line 4
def body
@attributes.to_json
end
|
#exception ⇒ Object
12
13
14
|
# File 'lib/payjp_mock/response/base.rb', line 12
def exception
nil
end
|
#status ⇒ Object
8
9
10
|
# File 'lib/payjp_mock/response/base.rb', line 8
def status
raise NotImplementedError
end
|
#to_h ⇒ Object
16
17
18
|
# File 'lib/payjp_mock/response/base.rb', line 16
def to_h
@attributes
end
|