Class: Radiator::ChainStatsApi

Inherits:
Api
  • Object
show all
Defined in:
lib/radiator/chain_stats_api.rb

Constant Summary

Constants inherited from Api

Api::DEFAULT_HIVE_FAILOVER_URLS, Api::DEFAULT_HIVE_RESTFUL_URL, Api::DEFAULT_HIVE_URL, Api::DEFAULT_STEEM_FAILOVER_URLS, Api::DEFAULT_STEEM_RESTFUL_URL, Api::DEFAULT_STEEM_URL, Api::HEALTH_URI, Api::POST_HEADERS

Instance Method Summary collapse

Methods inherited from Api

default_failover_urls, default_restful_url, default_url, #get_blocks, #initialize, #inspect, #method_missing, network_api, #respond_to_missing?, #shutdown, #stopped?, #use_condenser_namespace?

Methods included from Utils

#debug, #error, #extract_signatures, #hexlify, #pakArr, #pakC, #pakHash, #pakI, #pakL!, #pakS, #pakStr, #pakc, #paks, #send_log, #unhexlify, #varint, #warning

Constructor Details

This class inherits a constructor from Radiator::Api

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Radiator::Api

Instance Method Details

#api_nameObject



11
12
13
# File 'lib/radiator/chain_stats_api.rb', line 11

def api_name
  :chain_stats_api
end

#method_namesObject



3
4
5
6
7
8
9
# File 'lib/radiator/chain_stats_api.rb', line 3

def method_names
  @method_names ||= [
    :get_stats_for_time,
    :get_stats_for_interval,
    :get_lifetime_stats
  ].freeze
end