lib/useless/doc/serialization/dump.rb in useless-doc-0.3.1 vs lib/useless/doc/serialization/dump.rb in useless-doc-0.4.0

- old
+ new

@@ -28,10 +28,11 @@ if domain hash_to_json \ 'name' => domain.name, 'url' => domain.url, 'description' => domain.description, + 'timestamp' => domain.timestamp ? domain.timestamp.iso8601 : nil, 'apis' => domain.apis.map { |api| api(api) } end end # Converts +Core::API+ instance to a JSON representation. @@ -44,9 +45,10 @@ if api hash_to_json \ 'name' => api.name, 'url' => api.url, 'description' => api.description, + 'timestamp' => api.timestamp ? api.timestamp.iso8601 : nil, 'resources' => api.resources.map { |resource| resource(resource) } end end # Converts a +Core::Resource+ instance to a JSON representation.