Sha256: d9dcf58138fef70f208195d1724f95ffe9f69fe00b46cbcd975534bc3db285a0

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 Bytes

Contents

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ethermine_api-0.1.1 lib/ethermine_api/pool.rb