lib/harmony/api/client.rb in harmony-api-0.1.0 vs lib/harmony/api/client.rb in harmony-api-0.1.1
- old
+ new
@@ -3,11 +3,11 @@
module Harmony
module Api
class Client
attr_accessor :url, :payload, :configuration, :connection, :headers, :api_version
- def initialize(network: :os, shard: 0, configuration: ::Harmony::Api.configuration, options: {})
+ def initialize(network: :mainnet, shard: 0, configuration: ::Harmony::Api.configuration, options: {})
self.configuration = configuration
set_url(network, shard)
set_defaults
set_connection
@@ -76,8 +76,9 @@
end
def log(tag = self.class.name, message)
puts "[#{tag}] - #{Time.now}: #{message}" if configuration.verbose
end
+
end
end
end