lib/ably/models/stat.rb in ably-0.8.2 vs lib/ably/models/stat.rb in ably-0.8.3
- old
+ new
@@ -189,10 +189,10 @@
def hash
@hash_object
end
def as_json(*args)
- hash.as_json(*args)
+ hash.as_json(*args).reject { |key, val| val.nil? }
end
private
attr_reader :raw_hash_object