Class: Etherscan::Api
- Inherits:
-
Object
- Object
- Etherscan::Api
- Defined in:
- lib/etherscan/api.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #get(params) ⇒ Object
-
#initialize(params = {}) ⇒ Api
constructor
A new instance of Api.
Constructor Details
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
3 4 5 |
# File 'lib/etherscan/api.rb', line 3 def connection @connection end |
Instance Method Details
#get(params) ⇒ Object
9 10 11 12 |
# File 'lib/etherscan/api.rb', line 9 def get(params) response = connection.get(params) response['result'] end |