Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
os committed Sep 11, 2014
1 parent 13c8852 commit 4cf61ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slacker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ def list(self):


class Presence(BaseAPI):
PRESENCE_AWAY = 'away'
PRESENCE_ACTIVE = 'active'
PRESENCE_TYPES = (PRESENCE_AWAY, PRESENCE_ACTIVE)
AWAY = 'away'
ACTIVE = 'active'
TYPES = (AWAY, ACTIVE)

def set(self, presence):
assert presence in self.PRESENCE_TYPES, 'Invalid presence type'
assert presence in Presence.TYPES, 'Invalid presence type'
return self.post('presence.set', params={'presence': presence})


Expand Down

0 comments on commit 4cf61ad

Please sign in to comment.