lib/todoist/client.rb in todoist-ruby-0.2.3 vs lib/todoist/client.rb in todoist-ruby-0.2.4

- old
+ new

@@ -1,11 +1,11 @@ module Todoist - class Client + class Client def self.create_client_by_token(token) client = Client.new - client.token = token + client.token = token client end # TODO: Need to write a unit test for this def self.create_client_by_login(email, password) @@ -15,17 +15,17 @@ client.token = user.token client end def token=(token) - @token = token + @token = token.chomp end - + def token @token end - + def sync @api_helper.sync end def misc_activity @@ -110,10 +110,10 @@ protected def initialize @api_helper = Todoist::Util::ApiHelper.new(self) end - + end end