Sha256: 050c632e80975c12a0506238760c48a40be38ec7504f20064c33e972fac5ad13

Contents?: true

Size: 198 Bytes

Versions: 4

Compression:

Stored size: 198 Bytes

Contents

class ArtistRepository < Hanami::Repository
  def query
    { dataset: artists.dataset, filters: SEQUEL_QUERY[:filters] }
  end

  def reduce(params)
    Rack::Reducer.call(params, query)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-reducer-1.0.1 spec/_hanami_example/lib/hanami_example/repositories/artist_repository.rb
rack-reducer-1.0.0 spec/_hanami_example/lib/hanami_example/repositories/artist_repository.rb
rack-reducer-0.1.2 spec/_hanami_example/lib/hanami_example/repositories/artist_repository.rb
rack-reducer-0.1.1 spec/_hanami_example/lib/hanami_example/repositories/artist_repository.rb