Class: Radiator::Bridge

Inherits:
Api
  • Object
show all
Defined in:
lib/radiator/bridge.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



28
29
30
# File 'lib/radiator/bridge.rb', line 28

def api_name
  :bridge
end

#healthy?(_) ⇒ Boolean

Returns:

  • (Boolean)


32
# File 'lib/radiator/bridge.rb', line 32

def healthy?(_); true; end

#method_namesObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/radiator/bridge.rb', line 3

def method_names
  @method_names ||= [
    :normalize_post,
    :get_post_header,
    :get_discussion,
    :get_post,
    :get_account_posts,
    :get_ranked_posts,
    :get_profile,
    :get_trending_topics,
    :get_relationship_between_accounts,
    :post_notifications,
    :account_notifications,
    :unread_notifications,
    :get_payout_stats,
    :get_community,
    :get_community_context,
    :list_communities,
    :list_pop_communities,
    :list_community_roles,
    :list_subscribers,
    :list_all_subscriptions
  ].freeze
end