Class: EthermineApi::Pool

Inherits:
Object
  • Object
show all
Defined in:
lib/ethermine_api/pool.rb

Class Method Summary collapse

Class Method Details

.blocks_history(options = {}) ⇒ Object



16
17
18
19
20
# File 'lib/ethermine_api/pool.rb', line 16

def blocks_history options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call("blocks/history")
  )
end

.credits(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/ethermine_api/pool.rb', line 10

def credits options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call("credits")
  )
end

.network_stats(options = {}) ⇒ Object



22
23
24
25
26
# File 'lib/ethermine_api/pool.rb', line 22

def network_stats options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call("networkStats")
  )
end

.servers_history(options = {}) ⇒ Object



28
29
30
31
32
# File 'lib/ethermine_api/pool.rb', line 28

def servers_history options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call("servers/history")
  )
end

.stats(options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/ethermine_api/pool.rb', line 4

def stats options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call("poolStats")
  )
end