Method: Date.json_create
- Defined in:
- lib/json/add/date.rb
.json_create(object) ⇒ Object
Deserializes JSON string by converting Julian year y, month m, day d and Day of Calendar Reform sg to Date.
11 12 13 |
# File 'lib/json/add/date.rb', line 11 def self.json_create(object) civil(*object.values_at('y', 'm', 'd', 'sg')) end |