lib/platon/http_client.rb in platon-0.2.9 vs lib/platon/http_client.rb in platon-1.0.0
- old
+ new
@@ -2,10 +2,10 @@
require 'json'
module Platon
class HttpClient < Client
attr_accessor :host, :port, :uri, :ssl, :proxy
- def initialize(host,chain_name, proxy = nil, log = false)
+ def initialize(host,chain_name, proxy = nil)
super(chain_name,log)
uri = URI.parse(host)
raise ArgumentError unless ['http', 'https'].include? uri.scheme
@host = uri.host
@port = uri.port