app/models/info_request/state/complete_query.rb
class InfoRequest
module State
class CompleteQuery
def initialize(relation = InfoRequest)
@relation = relation
end
def call
@relation.where(
described_state: %w[
not_held rejected successful partially_successful user_withdrawn
],
awaiting_description: false
)
end
end
end
end