Class: TronHttp::Client
- Inherits:
-
Object
- Object
- TronHttp::Client
- Defined in:
- lib/tron_http/client.rb
Overview
TronHttp::Client The main class for interacting with the Tron API.
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Instance Method Summary collapse
-
#initialize(network = "shasta") ⇒ Client
constructor
A new instance of Client.
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
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
10 11 12 |
# File 'lib/tron_http/client.rb', line 10 def hostname @hostname end |