Class: Fabric::Peer
- Inherits:
-
ClientStub
- Object
- ClientStub
- Fabric::Peer
- Defined in:
- lib/fabric/peer.rb
Constant Summary
Constants inherited from ClientStub
ClientStub::VALID_OPTIONS_KEYS
Instance Attribute Summary
Attributes inherited from ClientStub
#creds, #host, #logger, #options
Instance Method Summary collapse
Methods inherited from ClientStub
Constructor Details
This class inherits a constructor from Fabric::ClientStub
Instance Method Details
#client ⇒ Object
5 6 7 |
# File 'lib/fabric/peer.rb', line 5 def client @client ||= Protos::Endorser::Stub.new(host, creds, ) end |
#send_process_proposal(proposal) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/fabric/peer.rb', line 9 def send_process_proposal(proposal) logging :send_process_proposal_request, proposal.to_h response = client.process_proposal proposal logging :send_process_proposal_response, response.to_h response end |