Class: Solrengine::Programs::Configuration
- Inherits:
-
Object
- Object
- Solrengine::Programs::Configuration
- Defined in:
- lib/solrengine/programs/configuration.rb
Instance Attribute Summary collapse
-
#keypair_format ⇒ Object
Returns the value of attribute keypair_format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #server_keypair ⇒ Object
- #server_keypair? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 |
# File 'lib/solrengine/programs/configuration.rb', line 9 def initialize @keypair_format = :base58 end |
Instance Attribute Details
#keypair_format ⇒ Object
Returns the value of attribute keypair_format.
7 8 9 |
# File 'lib/solrengine/programs/configuration.rb', line 7 def keypair_format @keypair_format end |
Instance Method Details
#server_keypair ⇒ Object
13 14 15 |
# File 'lib/solrengine/programs/configuration.rb', line 13 def server_keypair @server_keypair ||= load_keypair end |
#server_keypair? ⇒ Boolean
17 18 19 |
# File 'lib/solrengine/programs/configuration.rb', line 17 def server_keypair? !ENV["SOLANA_KEYPAIR"].nil? && !ENV["SOLANA_KEYPAIR"].empty? end |