grape_serializer 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grape_serializer.rb +1 -0
- data/lib/list_entity.rb +5 -3
- 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: ec5780f05eec17c12e08c6b1019b01dffa10bb2ab6f84d3b6aed4c7599cfc9c9
|
4
|
+
data.tar.gz: 663ee82abe66d374bbe27e829eeb260af807feb841c1e6b6f924cb07814c85c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e37dfa59c2d90146b2db5f235358522c9d12e6b2515cc7885b95222ce71be2899f0b1aeb10d7833e1d59e7fab75ccaed70fa686e345339c08948fc703533840
|
7
|
+
data.tar.gz: 510d83ef0942faecdd8fd044e6e201f3816099c8369ddd6d56b0929dc7c581ac93c59350ea635ad674e2a69959125ce2d4f639ad8d310121858a008e0020dc71
|
data/lib/grape_serializer.rb
CHANGED
data/lib/list_entity.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
class ListEntity < ServiceEntity
|
2
2
|
|
3
3
|
def self.inherited(subclass)
|
4
|
-
|
5
|
-
|
6
|
-
expose :
|
4
|
+
subclass.present_collection true
|
5
|
+
|
6
|
+
subclass.expose :total_count
|
7
|
+
subclass.expose :current_page
|
8
|
+
subclass.expose :total_pages
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|