File tree Expand file tree Collapse file tree
lib/single_action_service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- single_action_service (0.1 .0 )
4+ single_action_service (0.3 .0 )
55
66GEM
77 remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
3232 single_action_service !
3333
3434BUNDLED WITH
35- 1.17.2
35+ 1.17.3
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ success
5454```
55555 . Or return an error:
5656``` ruby
57- return error(sum, code: 1 ) unless sum.positive?
57+ return error(data: sum, code: 1 ) unless sum.positive?
5858```
59- The first parameter is any data (optional).
59+ The 'data' parameter is any data (optional).
6060
6161The 'code' parameter is used to identify the error (optional).
6262
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ def success(data = nil)
66 Result . new ( true , data : data )
77 end
88
9- def error ( data = nil , code : nil )
9+ def error ( data : nil , code : nil )
1010 Result . new ( false , data : data , error_code : code )
1111 end
1212 end
Original file line number Diff line number Diff line change 11module SingleActionService
2- VERSION = "0.2 .0"
2+ VERSION = "0.3 .0"
33end
You can’t perform that action at this time.
0 commit comments