Class: GfreshPoint::ResponseObjects::ResponseFailure

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, message)
  @type = type
  @message = message
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/gfresh_point/response_objects/response_failure.rb', line 8

def message
  @message
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/gfresh_point/response_objects/response_failure.rb', line 15

def success?
  false
end