Class: FlowClient::CollectionGuarantee
- Inherits:
-
Object
- Object
- FlowClient::CollectionGuarantee
- Defined in:
- lib/flow_client/collection.rb
Instance Attribute Summary collapse
-
#collection_id ⇒ Object
Returns the value of attribute collection_id.
-
#signatures ⇒ Object
Returns the value of attribute signatures.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CollectionGuarantee
constructor
A new instance of CollectionGuarantee.
Constructor Details
#initialize ⇒ CollectionGuarantee
Returns a new instance of CollectionGuarantee.
23 24 25 26 |
# File 'lib/flow_client/collection.rb', line 23 def initialize @collection_id = nil @signatures = [] end |
Instance Attribute Details
#collection_id ⇒ Object
Returns the value of attribute collection_id.
21 22 23 |
# File 'lib/flow_client/collection.rb', line 21 def collection_id @collection_id end |
#signatures ⇒ Object
Returns the value of attribute signatures.
21 22 23 |
# File 'lib/flow_client/collection.rb', line 21 def signatures @signatures end |
Class Method Details
.parse_grpc_type(grpc_type) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/flow_client/collection.rb', line 28 def self.parse_grpc_type(grpc_type) collection_guarantee = CollectionGuarantee.new collection_guarantee.collection_id = grpc_type.collection_id.unpack1("H*") collection_guarantee.signatures = grpc_type.signatures.to_a.map { |s| s.unpack1("H*") } collection_guarantee end |