neon_operations 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/neon_operations.rb +5 -1
- data/lib/neon_operations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15ebb8c60bbe6398222cebe7af190047cf542b65a38949981b8c6e4ccb469f5a
|
4
|
+
data.tar.gz: 15e26ebde3b8552514cb6a41d9bf66b3dc31966cff15f167dcc2abc9aa49cbd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa055f6e2ca247e865447da7a971c52ae6326d51b88aa8bf296949943d35bc0e506fdedec1566b50f34931bb1c9a26a31ae8b9f839a6f4197ae5ea8637e31f26
|
7
|
+
data.tar.gz: 26304e2f39bf8a51e2a3effe9a1bab9e7941c401872dc00a0c4408596ca864ce2c9315e56853107ae01460bdf67e524f6bc7ef20b78a70ecdecf193bed4b7600
|
data/Gemfile.lock
CHANGED
data/lib/neon_operations.rb
CHANGED
@@ -17,6 +17,10 @@ module NeonOperations
|
|
17
17
|
class Operation
|
18
18
|
include Dry::Monads[:maybe, :result]
|
19
19
|
|
20
|
+
def self.call(input:)
|
21
|
+
new(input: input).call
|
22
|
+
end
|
23
|
+
|
20
24
|
def initialize(input:, schema_contract: nil)
|
21
25
|
@input = input
|
22
26
|
@schema_contract = schema_contract
|
@@ -35,7 +39,7 @@ module NeonOperations
|
|
35
39
|
|
36
40
|
return Failure(validation_result) if validation_result.errors.any?
|
37
41
|
|
38
|
-
Success(
|
42
|
+
Success(validate_result)
|
39
43
|
end
|
40
44
|
end
|
41
45
|
end
|