class Web3::Hpb::Log

Attributes

raw_data[R]

Public Class Methods

new(log) click to toggle source
# File lib/web3/hpb/log.rb, line 7
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/hpb/log.rb, line 15
def has_topics?
  !!topics.first
end
indexed_args() click to toggle source
# File lib/web3/hpb/log.rb, line 23
def indexed_args
  topics[1...topics.size].collect{ |x| x[2..65] }
end
method_hash() click to toggle source
# File lib/web3/hpb/log.rb, line 19
def method_hash
  topics.first && topics.first[2..65]
end