Class: GfreshPoint::ResponseObjects::ResponseFailure
- Inherits:
-
Object
- Object
- GfreshPoint::ResponseObjects::ResponseFailure
- Defined in:
- lib/gfresh_point/response_objects/response_failure.rb
Constant Summary collapse
- RESOURCE_ERROR =
'ResourceError'
- PARAMETERS_ERROR =
'ParametersError'
- SYSTEM_ERROR =
'SystemError'
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(type, message) ⇒ ResponseFailure
constructor
A new instance of ResponseFailure.
- #success? ⇒ Boolean
Constructor Details
#initialize(type, message) ⇒ ResponseFailure
Returns a new instance of ResponseFailure.
10 11 12 13 |
# File 'lib/gfresh_point/response_objects/response_failure.rb', line 10 def initialize(type, ) @type = type @message = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/gfresh_point/response_objects/response_failure.rb', line 8 def @message end |
Instance Method Details
#success? ⇒ Boolean
15 16 17 |
# File 'lib/gfresh_point/response_objects/response_failure.rb', line 15 def success? false end |