Class: FlowClient::TransactionResult
- Inherits:
-
Object
- Object
- FlowClient::TransactionResult
- Defined in:
- lib/flow_client/transaction.rb
Instance Attribute Summary collapse
-
#block_id ⇒ Object
Returns the value of attribute block_id.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#events ⇒ Object
Returns the value of attribute events.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Class Method Summary collapse
Instance Attribute Details
#block_id ⇒ Object
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_message ⇒ Object
Returns the value of attribute error_message.
164 165 166 |
# File 'lib/flow_client/transaction.rb', line 164 def @error_message end |
#events ⇒ Object
Returns the value of attribute events.
164 165 166 |
# File 'lib/flow_client/transaction.rb', line 164 def events @events end |
#status ⇒ Object
Returns the value of attribute status.
164 165 166 |
# File 'lib/flow_client/transaction.rb', line 164 def status @status end |
#status_code ⇒ Object
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. = type. result.events = type.events.to_a.map { |event| FlowClient::Event.parse_grpc_type(event) } result end |