Class: PaymobRuby::ApplicationService::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/paymob_ruby/api/application_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



3
4
5
# File 'lib/paymob_ruby/api/application_service.rb', line 3

def error
  @error
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



3
4
5
# File 'lib/paymob_ruby/api/application_service.rb', line 3

def payload
  @payload
end

#success?Object

Returns the value of attribute success?

Returns:

  • (Object)

    the current value of success?



3
4
5
# File 'lib/paymob_ruby/api/application_service.rb', line 3

def success?
  @success?
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/paymob_ruby/api/application_service.rb', line 4

def failure?
  !success?
end