Class: Solana::Ruby::Kit::Configuration
- Inherits:
-
Object
- Object
- Solana::Ruby::Kit::Configuration
- Extended by:
- T::Sig
- Defined in:
- lib/solana/ruby/kit/configuration.rb
Instance Attribute Summary collapse
-
#commitment ⇒ Object
Returns the value of attribute commitment.
-
#rpc_url ⇒ Object
Returns the value of attribute rpc_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#ws_url ⇒ Object
Returns the value of attribute ws_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 25 26 |
# File 'lib/solana/ruby/kit/configuration.rb', line 21 def initialize @rpc_url = T.let('https://api.mainnet-beta.solana.com', String) @ws_url = T.let(nil, T.nilable(String)) @commitment = T.let(:confirmed, Symbol) @timeout = T.let(30, Integer) end |
Instance Attribute Details
#commitment ⇒ Object
Returns the value of attribute commitment.
15 16 17 |
# File 'lib/solana/ruby/kit/configuration.rb', line 15 def commitment @commitment end |
#rpc_url ⇒ Object
Returns the value of attribute rpc_url.
9 10 11 |
# File 'lib/solana/ruby/kit/configuration.rb', line 9 def rpc_url @rpc_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
18 19 20 |
# File 'lib/solana/ruby/kit/configuration.rb', line 18 def timeout @timeout end |
#ws_url ⇒ Object
Returns the value of attribute ws_url.
12 13 14 |
# File 'lib/solana/ruby/kit/configuration.rb', line 12 def ws_url @ws_url end |