Sha256: 6b8dc547f4ead23dc92b29077d7d6c2c3334f6d6a9b3dd617205cf61e6f37643
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
class TestStrictService include AtYourService.with(strict: true) 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_strict_service.rb |
at_your_service-1.0.0 | rails_test/rails_app/app/services/test_strict_service.rb |