Sha256: 0363f7dae3f3007e986ddad62c39d82303c920557e40588a238e2c547ca6eb28

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

module FlowClient
  class ProposalKey
    attr_accessor :address,
                  :sequence_number,
                  :key_id

    def initialize(address: nil, key_id: nil, sequence_number: nil)
      @address = address
      @sequence_number = sequence_number
      @key_id = key_id
    end

    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flow_client-0.2.1 lib/flow_client/proposal_key.rb
flow_client-0.2.0 lib/flow_client/proposal_key.rb