Skip to content

Commit

Permalink
replace integer states with symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
mikz committed Aug 9, 2017
1 parent db145fa commit 9a3e889
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/message_bus_client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a3e889

Please sign in to comment.