{"action":"opened","issue":{"url":"https://api.github.com/repos/jackc/tod/issues/39","repository_url":"https://api.github.com/repos/jackc/tod","labels_url":"https://api.github.com/repos/jackc/tod/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/jackc/tod/issues/39/comments","events_url":"https://api.github.com/repos/jackc/tod/issues/39/events","html_url":"https://github.com/jackc/tod/issues/39","id":189510576,"number":39,"title":"shifts vs. ruby ranges","user":{"login":"jjb","id":6097,"avatar_url":"https://avatars.githubusercontent.com/u/6097?v=3","gravatar_id":"","url":"https://api.github.com/users/jjb","html_url":"https://github.com/jjb","followers_url":"https://api.github.com/users/jjb/followers","following_url":"https://api.github.com/users/jjb/following{/other_user}","gists_url":"https://api.github.com/users/jjb/gists{/gist_id}","starred_url":"https://api.github.com/users/jjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjb/subscriptions","organizations_url":"https://api.github.com/users/jjb/orgs","repos_url":"https://api.github.com/users/jjb/repos","events_url":"https://api.github.com/users/jjb/events{/privacy}","received_events_url":"https://api.github.com/users/jjb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T21:24:03Z","updated_at":"2016-11-15T21:24:03Z","closed_at":null,"body":"I was pleased to find that `<=>` is defined, so ranges can be used\r\n\r\n```\r\n> morning = Tod::TimeOfDay.new(10)\r\n> noon = Tod::TimeOfDay.new(12)\r\n> afternoon = Tod::TimeOfDay.new(14)\r\n> (morning..afternoon).cover? noon\r\n=> true\r\n```\r\n\r\nWhat's the value of using `Tod::Shift` instead of ruby ranges?\r\n"}}
{"actor":{"display_login":"jjb"}}