lib/atol/request/get_token.rb in atol-0.3 vs lib/atol/request/get_token.rb in atol-0.4
- old
+ new
@@ -25,18 +25,14 @@
@http_client = @config.http_client
end
def call
uri = URI(Atol::URL + PATH)
- uri.query = URI.encode_www_form(login: login, pass: password)
+ uri.query = URI.encode_www_form(login: @login, pass: @password)
http = @http_client.new(uri.host, uri.port)
http.use_ssl = true
http.get(uri.request_uri)
end
-
- private
-
- attr_reader :login, :password
end
end
end