diff --git a/src/crystal-scatter/ring.cr b/src/crystal-scatter/ring.cr index b24b4c5..5308719 100644 --- a/src/crystal-scatter/ring.cr +++ b/src/crystal-scatter/ring.cr @@ -1,9 +1,13 @@ +require "json" + module Crystal::Scatter class Slice - property s_begin : UInt64 - property s_end : UInt64 - property url : String + JSON.mapping( + s_begin: UInt64, + s_end: UInt64, + url: String + ) def initialize(@s_begin,@s_end,@url) end