Skip to content

Instantly share code, notes, and snippets.

@portertech
Created August 16, 2016 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save portertech/b219d36d97adbfc80f1c3f08ab3660d2 to your computer and use it in GitHub Desktop.
Save portertech/b219d36d97adbfc80f1c3f08ab3660d2 to your computer and use it in GitHub Desktop.
# Current
{
:begin => "12:00:00 AM"
:end => "12:30:00 AM",
:days => ["monday", "tuesday"],
:exceptions => [
{:begin => "12:10:00 AM", :end => "12:15:00 AM"}
]
}
# NEW
{
:days => {
:monday => [
{
:begin => "12:00:00 AM"
:end => "12:10:00 AM"
},
{
:begin => "12:15:00 AM"
:end => "12:30:00 AM"
}
],
:tuesday => [
{
:begin => "12:00:00 AM"
:end => "12:10:00 AM"
},
{
:begin => "12:15:00 AM"
:end => "12:30:00 AM"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment