Class: Fondy::BaseResponse
- Inherits:
-
Object
- Object
- Fondy::BaseResponse
show all
- Defined in:
- lib/fondy/base_response.rb
Instance Method Summary
collapse
Constructor Details
#initialize(http_response) ⇒ BaseResponse
Returns a new instance of BaseResponse.
4
5
6
|
# File 'lib/fondy/base_response.rb', line 4
def initialize(http_response)
@http_response = http_response
end
|
Instance Method Details
#error? ⇒ Boolean
12
13
14
|
# File 'lib/fondy/base_response.rb', line 12
def error?
!success?
end
|
#error_code ⇒ Object
16
17
18
|
# File 'lib/fondy/base_response.rb', line 16
def error_code
raise NotImplementedError
end
|
#error_message ⇒ Object
20
21
22
|
# File 'lib/fondy/base_response.rb', line 20
def error_message
raise NotImplementedError
end
|
#success? ⇒ Boolean
8
9
10
|
# File 'lib/fondy/base_response.rb', line 8
def success?
raise NotImplementedError
end
|