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.


183
184
185
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/component.rb', line 183

def initialize(id)
  @id = id
end

Instance Method Details

#runObject


187
188
189
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/component.rb', line 187

def run
  serialize
end

#serializeObject


191
192
193
194
195
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/component.rb', line 191

def serialize
  {
    id: @id
  }
end