Sha256: 63cabef04c2f1434deb208df92df6aedd2dc68213e0d3170ac3996d73c015ca2

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

require_relative '../../../../lib/hanami_example'

module Web::Controllers::Artists
  class Index
    include Web::Action

    def call(params)
      @artists = ArtistRepository.new.reduce(params).to_a
      self.body = @artists.to_json
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-reducer-1.0.1 spec/_hanami_example/apps/web/controllers/artists/index.rb
rack-reducer-1.0.0 spec/_hanami_example/apps/web/controllers/artists/index.rb
rack-reducer-0.1.2 spec/_hanami_example/apps/web/controllers/artists/index.rb
rack-reducer-0.1.1 spec/_hanami_example/apps/web/controllers/artists/index.rb