From 3040e62c81d567f926c9f25ebb525447bdfccc35 Mon Sep 17 00:00:00 2001 From: Michal Cichra Date: Wed, 9 Aug 2017 07:20:52 +0200 Subject: [PATCH] replace integer states with symbols --- lib/message_bus_client/connection.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/message_bus_client/connection.rb b/lib/message_bus_client/connection.rb index 7b6cfd9..ee0a968 100644 --- a/lib/message_bus_client/connection.rb +++ b/lib/message_bus_client/connection.rb @@ -2,19 +2,19 @@ module MessageBusClient::Connection # The connection is in the initialised state. - INITIALISED = 0 + INITIALISED = :initialised # The connection is in the started state. - STARTED = 1 + STARTED = :started # The connection is in the paused state. - PAUSED = 2 + PAUSED = :paused # The connection is in the stopping state. - STOPPING = 3 + STOPPING = :stopping # The connection is in the stopped state. - STOPPED = 4 + STOPPED = :stopped def initialize(base_url) @connection = nil