lingutest_client 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lingutest_client/exam.rb +15 -4
- data/lib/lingutest_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb2319892145efa64cff3f1d7dbeb1a489313deb4cb50ac6bbf36331e56000a
|
4
|
+
data.tar.gz: 50aa31db07590bd69f582feb3b8dd817c2e9aafd360eeeb81b0e748f2a95d28b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8998a0b294a52371c3554851705df23b0f044ac85900ecdf2eae2190ce49fd52e893f954f3896cef524975818bddf4645c5b2ab8c35d9381e50f20394031a54
|
7
|
+
data.tar.gz: 78e5e042bcc734b28a9a4b7e8713ce95a986fd82085c359b81bd46192548d5cc3bb7950e75b542d5890b18c319b8cdd6f6aff66b168dd45620df6feb8ebf4e51
|
@@ -7,10 +7,21 @@ module LingutestClient
|
|
7
7
|
include Api::Resource
|
8
8
|
include Api::Operations::List.module(ExamList)
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
FilterSchema = Dry::Schema.Params do
|
11
|
+
config.validate_keys = true
|
12
|
+
optional(:page).filled(Types::Coercible::Integer)
|
13
|
+
optional(:per_page).filled(Types::Coercible::Integer)
|
14
|
+
|
15
|
+
optional(:locale_eq).filled(Types::Coercible::String)
|
16
|
+
optional(:price_gt).filled(Types::Coercible::Integer)
|
17
|
+
end
|
18
|
+
|
19
|
+
attribute :id, Types::Coercible::Integer.optional.default(0)
|
20
|
+
attribute :name, Types::Coercible::String.optional.default('')
|
21
|
+
attribute :locale, Types::Coercible::String.optional.default('')
|
12
22
|
attribute :description, Types::Coercible::String.optional.default('')
|
13
|
-
attribute :price,
|
14
|
-
attribute :updated_at,
|
23
|
+
attribute :price, Types::Coercible::Decimal.optional.default(0)
|
24
|
+
attribute :updated_at, Types::DateTime.optional.default(nil)
|
25
|
+
attribute :created_at, Types::DateTime.optional.default(nil)
|
15
26
|
end
|
16
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lingutest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatolii Didukh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|