Class: Decidim::Dev::DummySerializer
- Inherits:
-
Object
- Object
- Decidim::Dev::DummySerializer
- Defined in:
- app/serializers/decidim/dev/dummy_serializer.rb
Instance Method Summary collapse
-
#initialize(id) ⇒ DummySerializer
constructor
A new instance of DummySerializer.
- #run ⇒ Object
- #serialize ⇒ Object
Constructor Details
#initialize(id) ⇒ DummySerializer
Returns a new instance of DummySerializer.
6 7 8 |
# File 'app/serializers/decidim/dev/dummy_serializer.rb', line 6 def initialize(id) @id = id end |
Instance Method Details
#run ⇒ Object
10 11 12 |
# File 'app/serializers/decidim/dev/dummy_serializer.rb', line 10 def run serialize end |
#serialize ⇒ Object
14 15 16 17 18 |
# File 'app/serializers/decidim/dev/dummy_serializer.rb', line 14 def serialize { id: @id } end |