Class: SolscanApiRuby::Client::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/solscan_api_ruby/client/base.rb

Direct Known Subclasses

FaradayClient

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_url: SolscanApiRuby::API_URL) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/solscan_api_ruby/client/base.rb', line 6

def initialize(api_url: SolscanApiRuby::API_URL)
  @api_url = api_url
end

Instance Attribute Details

#api_urlObject

Returns the value of attribute api_url.



4
5
6
# File 'lib/solscan_api_ruby/client/base.rb', line 4

def api_url
  @api_url
end

Instance Method Details

#call_apiObject



10
11
12
# File 'lib/solscan_api_ruby/client/base.rb', line 10

def call_api
  raise 'Method call_api needs to be implemented in child class'
end