Skip to content

Instantly share code, notes, and snippets.

@jessereynolds
Created April 10, 2013 04:26
Show Gist options
  • Save jessereynolds/5351787 to your computer and use it in GitHub Desktop.
Save jessereynolds/5351787 to your computer and use it in GitHub Desktop.
ice cube example serialisation
Yearly on the 13th day of the month on Fridays in October
YAML:
---
:start_date: 2013-04-09 21:23:19.275992000 -07:00
:rrules:
- :validations:
:day_of_month:
- 13
:day:
- 5
:month_of_year:
- 10
:rule_type: IceCube::YearlyRule
:interval: 1
:exrules: []
:rtimes: []
:extimes: []
JSON Hash
{:start_date=>2013-04-09 21:23:19 -0700,
:rrules=>
[{:validations=>{:day_of_month=>[13], :day=>[5], :month_of_year=>[10]},
:rule_type=>"IceCube::YearlyRule",
:interval=>1}],
:exrules=>[],
:rtimes=>[],
:extimes=>[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment