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