Class: TronHttp::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/tron_http/client.rb

Overview

TronHttp::Client The main class for interacting with the Tron API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network = "shasta") ⇒ Client

Returns a new instance of Client.



12
13
14
# File 'lib/tron_http/client.rb', line 12

def initialize(network = "shasta")
  @hostname = hostname_for(network)
end

Instance Attribute Details

#hostnameObject (readonly)

Returns the value of attribute hostname.



10
11
12
# File 'lib/tron_http/client.rb', line 10

def hostname
  @hostname
end