Sha256: e93df8f403ddcfd6cf19906ddb9b47c3144d9dbf56435fcbeef238c2f2cf3ab4
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true # TronHttp module TronHttp # # TronHttp::Client # The main class for interacting with the Tron API. # class Client attr_reader :hostname def initialize(network = "shasta") @hostname = hostname_for(network) end private def hostname_for(network) hostname = Config.hostnames[network] raise "Network #{network} not found." unless hostname hostname end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tron_http-0.1.1 | lib/tron_http/client.rb |