lib/tredo/todo.rb in tredo-0.1.3 vs lib/tredo/todo.rb in tredo-0.1.4
- old
+ new
@@ -8,13 +8,13 @@
LIST_ID = "61af9e0503811b04f6771d01".freeze
BASE_URL = "https://api.trello.com/1".freeze
attr_reader :token, :key
- def initialize(restclient, test_token = nil, test_key = nil)
+ def initialize(restclient, token = nil, key = nil)
@restprovider = restclient
- @token = test_token ||= ENV["PROVIDER_TOKEN"]
- @key = test_key ||= ENV["PROVIDER_KEY"]
+ @token = token ||= ENV["PROVIDER_TOKEN"]
+ @key = key ||= ENV["PROVIDER_KEY"]
end
def create_card(name)
return error("Missing Token or Key") if invalid_auth?
return error("Card name is empty") if name.nil? || name.empty?