Class: RailwayIpc::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/railway_ipc/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, success: true)
  @body = message
  @success = success
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/railway_ipc/response.rb', line 5

def body
  @body
end

#successObject (readonly)

Returns the value of attribute success.



5
6
7
# File 'lib/railway_ipc/response.rb', line 5

def success
  @success
end