Class: SolscanApiRuby::Client::Base
- Inherits:
-
Object
- Object
- SolscanApiRuby::Client::Base
- Defined in:
- lib/solscan_api_ruby/client/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
Instance Method Summary collapse
- #call_api ⇒ Object
-
#initialize(api_url: SolscanApiRuby::API_URL) ⇒ Base
constructor
A new instance of Base.
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_url ⇒ Object
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_api ⇒ Object
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 |