lib/unleash/context.rb in unleash-5.0.1 vs lib/unleash/context.rb in unleash-5.0.2
- old
+ new
@@ -18,10 +18,10 @@
self.properties = properties.is_a?(Hash) ? properties.transform_keys(&:to_sym) : {}
end
def to_s
"<Context: user_id=#{@user_id},session_id=#{@session_id},remote_address=#{@remote_address},properties=#{@properties}" \
- ",app_name=#{@app_name},environment=#{@environment}>"
+ ",app_name=#{@app_name},environment=#{@environment},current_time=#{@current_time}>"
end
def to_h
ATTRS.map{ |attr| [attr, self.send(attr)] }.to_h.merge(properties: @properties)
end