class Web3::Eth::Log
Attributes
raw_data[R]
Public Class Methods
new(log)
click to toggle source
# File lib/web3/eth/log.rb, line 8 def initialize log @raw_data = log log.each do |k, v| self.instance_variable_set("@#{k}", v) self.class.send(:define_method, k, proc {self.instance_variable_get("@#{k}")}) end end
Public Instance Methods
has_topics?()
click to toggle source
# File lib/web3/eth/log.rb, line 18 def has_topics? !!topics.first end
indexed_args()
click to toggle source
# File lib/web3/eth/log.rb, line 26 def indexed_args topics[1...topics.size].collect{|x| x[2..65]} end
method_hash()
click to toggle source
# File lib/web3/eth/log.rb, line 22 def method_hash topics.first && topics.first[2..65] end