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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68dac5c702407cc6dbaad6aff532d6d86e46bd6df855bb5a3d790de47a91d517
4
- data.tar.gz: 458b07f2f66c93a218020ddac94fb26b44f4d7f1f4ae114ab89dd8abdc3170d0
3
+ metadata.gz: ec5780f05eec17c12e08c6b1019b01dffa10bb2ab6f84d3b6aed4c7599cfc9c9
4
+ data.tar.gz: 663ee82abe66d374bbe27e829eeb260af807feb841c1e6b6f924cb07814c85c6
5
5
  SHA512:
6
- metadata.gz: 1500df9f657a4db4275387d2d5b19a5c52510a708bbde8a9f2ee496cb48b494cffe4e4591aea8385a2483653f27469d878657a494f2150aeef95d57028858536
7
- data.tar.gz: 9b5ecba1cdd63b0022c20096a92f19ad8ad1ca0e4118989e38793172f9ffdc1cf84540db54dc1fad98a2c18980f6d5050da85cd8297cca70927361386310f2a3
6
+ metadata.gz: 5e37dfa59c2d90146b2db5f235358522c9d12e6b2515cc7885b95222ce71be2899f0b1aeb10d7833e1d59e7fab75ccaed70fa686e345339c08948fc703533840
7
+ data.tar.gz: 510d83ef0942faecdd8fd044e6e201f3816099c8369ddd6d56b0929dc7c581ac93c59350ea635ad674e2a69959125ce2d4f639ad8d310121858a008e0020dc71
@@ -1,5 +1,6 @@
1
1
  require 'grape_response'
2
2
  require 'service_entity'
3
+ require 'list_entity'
3
4
 
4
5
  class GrapeSerializer
5
6
 
data/lib/list_entity.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  class ListEntity < ServiceEntity
2
2
 
3
3
  def self.inherited(subclass)
4
- expose :total_count
5
- expose :current_page
6
- expose :total_pages
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee