Class: BugReportsClient::ApiClient::Result
- Inherits:
-
Struct
- Object
- Struct
- BugReportsClient::ApiClient::Result
- Defined in:
- app/services/bug_reports_client/api_client.rb
Overview
Simple success/failure wrapper returned by the public methods.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#message ⇒ Object
Returns the value of attribute message.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
14 15 16 |
# File 'app/services/bug_reports_client/api_client.rb', line 14 def data @data end |
#message ⇒ Object
Returns the value of attribute message
14 15 16 |
# File 'app/services/bug_reports_client/api_client.rb', line 14 def @message end |
#success ⇒ Object
Returns the value of attribute success
14 15 16 |
# File 'app/services/bug_reports_client/api_client.rb', line 14 def success @success end |
Instance Method Details
#success? ⇒ Boolean
15 |
# File 'app/services/bug_reports_client/api_client.rb', line 15 def success? = !!success |