Class: FlowClient::EventsResult
- Inherits:
-
Object
- Object
- FlowClient::EventsResult
- Defined in:
- lib/flow_client/event.rb
Instance Attribute Summary collapse
-
#block_height ⇒ Object
Returns the value of attribute block_height.
-
#block_id ⇒ Object
Returns the value of attribute block_id.
-
#block_timestamp ⇒ Object
Returns the value of attribute block_timestamp.
-
#events ⇒ Object
Returns the value of attribute events.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ EventsResult
constructor
A new instance of EventsResult.
Constructor Details
#initialize ⇒ EventsResult
Returns a new instance of EventsResult.
10 11 12 13 14 15 |
# File 'lib/flow_client/event.rb', line 10 def initialize @block_id = nil @block_height = nil @events = nil @block_timestamp = nil end |
Instance Attribute Details
#block_height ⇒ Object
Returns the value of attribute block_height.
5 6 7 |
# File 'lib/flow_client/event.rb', line 5 def block_height @block_height end |
#block_id ⇒ Object
Returns the value of attribute block_id.
5 6 7 |
# File 'lib/flow_client/event.rb', line 5 def block_id @block_id end |
#block_timestamp ⇒ Object
Returns the value of attribute block_timestamp.
5 6 7 |
# File 'lib/flow_client/event.rb', line 5 def @block_timestamp end |
#events ⇒ Object
Returns the value of attribute events.
5 6 7 |
# File 'lib/flow_client/event.rb', line 5 def events @events end |
Class Method Details
.parse_grpc_type(type) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/flow_client/event.rb', line 17 def self.parse_grpc_type(type) event = EventsResult.new event.block_id = type.block_id.unpack1("H*") event.block_height = type.block_height event. = FlowClient::Utils.(type.) event.events = type.events.map { |event| FlowClient::Event.parse_grpc_type(event) } event end |