Class: RailwayIpc::Response
- Inherits:
-
Object
- Object
- RailwayIpc::Response
- Defined in:
- lib/railway_ipc/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(message, success: true) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(message, success: true) ⇒ Response
Returns a new instance of Response.
7 8 9 10 |
# File 'lib/railway_ipc/response.rb', line 7 def initialize(, success: true) @body = @success = success end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/railway_ipc/response.rb', line 5 def body @body end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
5 6 7 |
# File 'lib/railway_ipc/response.rb', line 5 def success @success end |