Class: WalletValidator::Config
- Inherits:
-
Object
- Object
- WalletValidator::Config
- Defined in:
- lib/wallet_validator/config.rb
Class Attribute Summary collapse
Instance Attribute Summary collapse
-
#chain ⇒ Object
Returns the value of attribute chain.
Instance Method Summary collapse
-
#initialize(user_config = {}) ⇒ Config
constructor
A new instance of Config.
- #valid? ⇒ Boolean
Constructor Details
#initialize(user_config = {}) ⇒ Config
Returns a new instance of Config.
17 18 19 |
# File 'lib/wallet_validator/config.rb', line 17 def initialize(user_config = {}) self.chain = user_config[:chain] end |
Class Attribute Details
.instance ⇒ Config
10 11 12 |
# File 'lib/wallet_validator/config.rb', line 10 def instance @instance ||= new end |
Instance Attribute Details
#chain ⇒ Object
Returns the value of attribute chain.
15 16 17 |
# File 'lib/wallet_validator/config.rb', line 15 def chain @chain end |
Instance Method Details
#valid? ⇒ Boolean
21 22 23 |
# File 'lib/wallet_validator/config.rb', line 21 def valid? !self.chain.nil? end |