Module: QuorumSdk::Node::Group
- Included in:
- QuorumSdk::Node
- Defined in:
- lib/quorum_sdk/node/group.rb
Overview
group module
Instance Method Summary collapse
- #info(group_id: nil) ⇒ Object
- #producers(group_id: nil) ⇒ Object
- #user_encrypt_pubkeys(group_id: nil) ⇒ Object
Instance Method Details
#info(group_id: nil) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/quorum_sdk/node/group.rb', line 7 def info(group_id: nil) group_id ||= @group_id raise ArgumentError, 'group_id must be provided' if group_id.blank? path = "api/v1/node/#{group_id}/info" client.get(path).body end |
#producers(group_id: nil) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/quorum_sdk/node/group.rb', line 15 def producers(group_id: nil) group_id ||= @group_id raise ArgumentError, 'group_id must be provided' if group_id.blank? path = "api/v1/node/#{group_id}/producers" client.get(path).body end |
#user_encrypt_pubkeys(group_id: nil) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/quorum_sdk/node/group.rb', line 23 def user_encrypt_pubkeys(group_id: nil) group_id ||= @group_id raise ArgumentError, 'group_id must be provided' if group_id.blank? path = "api/v1/node/#{group_id}/userencryptpubkeys" client.get(path).body end |