Sha256: d99e10683dae6fa81d2b57fc3a478f36137662a6465cca2f7b45d3a06904e096
Contents?: true
Size: 474 Bytes
Versions: 7
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module <%= service_name.classify %>::Queries class <%= @query %> < QueryBase # queries UserService::Models::User # Example # def query # map_rows(relation.where(phone: options.fetch(:phone))) # end private # def map_rows(rows) # rows.map { |r| UserService::Views::User.new(r.as_json).to_hash } # end # def map_row(r) # UserService::Views::User.new(r.as_json).to_hash # end end end
Version data entries
7 entries across 7 versions & 1 rubygems