Module: QuorumSdk::Node::AppConfig
- Included in:
- QuorumSdk::Node
- Defined in:
- lib/quorum_sdk/node/app_config.rb
Overview
Appconfig module
Instance Method Summary collapse
Instance Method Details
#app_config(key, group_id: nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/quorum_sdk/node/app_config.rb', line 7 def app_config(key, group_id: nil) group_id ||= @group_id raise ArgumentError, 'group_id must be provided' if group_id.blank? raise ArgumentError, 'key must be provided' if key.blank? path = "api/v1/node/#{group_id}/appconfig/by/#{key}" client.get(path).body end |
#app_config_keys(group_id: nil) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/quorum_sdk/node/app_config.rb', line 16 def app_config_keys(group_id: nil) group_id ||= @group_id raise ArgumentError, 'group_id must be provided' if group_id.blank? path = "api/v1/node/#{group_id}/appconfig/keylist" client.get(path).body end |