Sha256: 6f31e7a817c80d9bfdf9c7fe726f03f9d51c3ed59529ffaef162f3d7da6a4357
Contents?: true
Size: 284 Bytes
Versions: 2
Compression:
Stored size: 284 Bytes
Contents
class TestNonStrictService include AtYourService.with attribute :test, Boolean TEST_ERROR = "Test example error" TEST_SUCCESS = "Test example success" def call if test return Success.new(TEST_SUCCESS) else return Error.new(TEST_ERROR) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
at_your_service-1.1.0 | rails_test/rails_app/app/services/test_non_strict_service.rb |
at_your_service-1.0.0 | rails_test/rails_app/app/services/test_non_strict_service.rb |