Class: DummySerializer

Inherits:
Object
  • Object
show all
Defined in:
decidim-dev/lib/decidim/dev/test/rspec_support/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ DummySerializer

Returns a new instance of DummySerializer.


209
210
211
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/component.rb', line 209

def initialize(id)
  @id = id
end

Instance Method Details

#runObject


213
214
215
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/component.rb', line 213

def run
  serialize
end

#serializeObject


217
218
219
220
221
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/component.rb', line 217

def serialize
  {
    id: @id
  }
end