Class: FlowClient::ProposalKey
- Inherits:
-
Object
- Object
- FlowClient::ProposalKey
- Defined in:
- lib/flow_client/proposal_key.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#key_id ⇒ Object
Returns the value of attribute key_id.
-
#sequence_number ⇒ Object
Returns the value of attribute sequence_number.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address: nil, key_id: nil, sequence_number: nil) ⇒ ProposalKey
constructor
A new instance of ProposalKey.
Constructor Details
#initialize(address: nil, key_id: nil, sequence_number: nil) ⇒ ProposalKey
Returns a new instance of ProposalKey.
9 10 11 12 13 |
# File 'lib/flow_client/proposal_key.rb', line 9 def initialize(address: nil, key_id: nil, sequence_number: nil) @address = address @sequence_number = sequence_number @key_id = key_id end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
5 6 7 |
# File 'lib/flow_client/proposal_key.rb', line 5 def address @address end |
#key_id ⇒ Object
Returns the value of attribute key_id.
5 6 7 |
# File 'lib/flow_client/proposal_key.rb', line 5 def key_id @key_id end |
#sequence_number ⇒ Object
Returns the value of attribute sequence_number.
5 6 7 |
# File 'lib/flow_client/proposal_key.rb', line 5 def sequence_number @sequence_number end |
Class Method Details
.parse_grpc_type(type) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/flow_client/proposal_key.rb', line 15 def self.parse_grpc_type(type) signature = ProposalKey.new signature.address = type.address.unpack1("H*") signature.sequence_number = type.sequence_number signature.key_id = type.key_id signature end |