eonu / arx

A Ruby interface for querying academic papers on the arXiv search API.
https://arxiv.org/help/api
MIT License
31 stars 1 forks source link

[feature:lib] Add submitted_at for submission date querying #97

Closed eonu closed 3 years ago

eonu commented 3 years ago

Checklist

Reason (or issue)

After reading into how it is possible to query using lastUpdatedDate in #93, it appears that it is also possible to do the same with submittedDate, so this PR implements that.

Note that instead of adding Arx::Query#submitted_date, we define it as Arx::Query#submitted_at. Arx::Query#last_updated_date is also changed to Arx::Query#updated_at. This is done in order to match the naming pattern of Arx::Paper#updated_at and Arx::Paper#published_at.

This design decision is inspired by ActiveRecord::Timestamp's created_at and updated_at.

The same changes are made to the last_updated and date_submitted sort-by criteria.