Method: FlowClient::Event.parse_grpc_type
- Defined in:
- lib/flow_client/event.rb
.parse_grpc_type(type) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/flow_client/event.rb', line 42 def self.parse_grpc_type(type) event = Event.new event.type = type.type event.transaction_id = type.transaction_id.unpack1("H*") event.transaction_index = type.transaction_index event.event_index = type.event_index event.payload = type.payload event end |