Class: FlowClient::TransactionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_client/transaction.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#block_idObject

Returns the value of attribute block_id.



164
165
166
# File 'lib/flow_client/transaction.rb', line 164

def block_id
  @block_id
end

#error_messageObject

Returns the value of attribute error_message.



164
165
166
# File 'lib/flow_client/transaction.rb', line 164

def error_message
  @error_message
end

#eventsObject

Returns the value of attribute events.



164
165
166
# File 'lib/flow_client/transaction.rb', line 164

def events
  @events
end

#statusObject

Returns the value of attribute status.



164
165
166
# File 'lib/flow_client/transaction.rb', line 164

def status
  @status
end

#status_codeObject

Returns the value of attribute status_code.



164
165
166
# File 'lib/flow_client/transaction.rb', line 164

def status_code
  @status_code
end

Class Method Details

.parse_grpc_type(type) ⇒ Object



170
171
172
173
174
175
176
177
178
# File 'lib/flow_client/transaction.rb', line 170

def self.parse_grpc_type(type)
  result = TransactionResult.new
  result.block_id = type.block_id.unpack1("H*")
  result.status = type.status
  result.status_code = type.status_code
  result.error_message = type.error_message
  result.events = type.events.to_a.map { |event| FlowClient::Event.parse_grpc_type(event) }
  result
end