lib/submodules/ably-ruby/lib/ably/modules/model_common.rb in ably-rest-1.0.0 vs lib/submodules/ably-ruby/lib/ably/modules/model_common.rb in ably-rest-1.0.5

- old
+ new

@@ -24,10 +24,10 @@ attributes == other.attributes end # Return a JSON ready object from the underlying #attributes using Ably naming conventions for keys # @return [Hash] - def as_json + def as_json(*args) attributes.as_json.reject { |key, val| val.nil? } end # Stringify the JSON representation of this object from the underlying #attributes # @return [String]