asonas / chatwork-ruby

MIT License
64 stars 27 forks source link

Make thread safe #48

Closed sue445 closed 6 years ago

sue445 commented 6 years ago

api_key and access_tokenare depends on class instance variable.

All API methods are not thread safe :tired_face:

So I want to fix this.

Features (draft)

client = ChatWork.create_client(access_token: user.access_token)
client.get_me

Note

All class methods (e.g. ChatWork::Me.get) continue to support