Class: Response
- Inherits:
-
Object
show all
- Defined in:
- lib/recharge/response.rb
Defined Under Namespace
Classes: BadRequest, NotAuthorized, NotFound
Instance Method Summary
collapse
Constructor Details
#initialize(code, body) ⇒ Response
Returns a new instance of Response.
2
3
4
5
|
# File 'lib/recharge/response.rb', line 2
def initialize(code, body)
@code = code
@body = body
end
|
Instance Method Details
#assertValidResponse ⇒ Object
#body ⇒ Object
9
10
11
|
# File 'lib/recharge/response.rb', line 9
def body
@body
end
|
#code ⇒ Object
6
7
8
|
# File 'lib/recharge/response.rb', line 6
def code
@code
end
|