Class: PaymobRuby::ApplicationService::Response
- Inherits:
-
Struct
- Object
- Struct
- PaymobRuby::ApplicationService::Response
- Defined in:
- lib/paymob_ruby/api/application_service.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#success? ⇒ Object
Returns the value of attribute success?.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
3 4 5 |
# File 'lib/paymob_ruby/api/application_service.rb', line 3 def error @error end |
#payload ⇒ Object
Returns the value of attribute 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?
3 4 5 |
# File 'lib/paymob_ruby/api/application_service.rb', line 3
def success?
@success?
end
|
Instance Method Details
#failure? ⇒ Boolean
4 5 6 |
# File 'lib/paymob_ruby/api/application_service.rb', line 4 def failure? !success? end |