Class: Date
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.fjson_create(object) ⇒ Object
28 29 30 |
# File 'lib/fiveruns/json/add/core.rb', line 28 def self.fjson_create(object) civil(*object.values_at('y', 'm', 'd', 'sg')) end |
Instance Method Details
#to_fjson(*args) ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/fiveruns/json/add/core.rb', line 34 def to_fjson(*args) { 'json_class' => self.class.name, 'y' => year, 'm' => month, 'd' => day, 'sg' => start, }.to_fjson(*args) end |